-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: "3.9"
# Local development compose file.
#
# Starts a single Home Assistant instance wired up exactly as the test
# container does it, but without the Python/pytest wrapper — useful for
# exploring the UI, building UIX dashboards, or manual verification.
#
# Usage:
# make setup # download UIX into custom_components/
# docker compose up # start HA
# open http://localhost:8123
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:${HA_VERSION:-stable}
container_name: ha-testcontainer-dev
restart: unless-stopped
environment:
- TZ=UTC
volumes:
# Mount the demo config as /config.
- ./ha-config:/config:rw
# Mount custom components (populated by `make setup`) alongside the
# config so HA picks them up automatically.
- ./custom_components:/config/custom_components:rw
ports:
- "8123:8123"
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8123/api/"]
interval: 30s
timeout: 10s
retries: 10
start_period: 60s