-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (23 loc) · 693 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (23 loc) · 693 Bytes
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
services:
homeassistant-init:
image: busybox
volumes:
- ha-config:/config
- ./config/configuration.yaml:/tmp/configuration.yaml:ro
command: sh -c "[ ! -f /config/configuration.yaml ] && cp /tmp/configuration.yaml /config/ || true; chown -R 1000:1000 /config; chmod -R 755 /config"
homeassistant:
container_name: homeassistant-dev
image: homeassistant/home-assistant:stable
restart: unless-stopped
user: "1000:1000"
depends_on:
- homeassistant-init
environment:
- TZ=America/Chicago
volumes:
- ha-config:/config
- ./custom_components:/config/custom_components
ports:
- "8123:8123"
volumes:
ha-config: