services:
  ha-chelsty-init:
    image: busybox
    container_name: ha-test-chelsty-init
    command: sh -c "cp -rn /fixtures/. /config/ && echo 'Fixtures copied'"
    volumes:
      - ./fixtures/chelsty:/fixtures:ro
      - ha_chelsty_config:/config
    restart: "no"

  ha-chelsty:
    image: ghcr.io/home-assistant/home-assistant:stable
    container_name: ha-test-chelsty
    privileged: true
    depends_on:
      ha-chelsty-init:
        condition: service_completed_successfully
    ports:
      - "8124:8123"
    volumes:
      - ha_chelsty_config:/config
    environment:
      TZ: UTC
    restart: "no"

volumes:
  ha_chelsty_config:
