This commit is contained in:
39
compose.yml
Normal file
39
compose.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
services:
|
||||
home_assistant:
|
||||
image: ghcr.io/home-assistant/home-assistant:2026.2.1
|
||||
user: 2019:2019 # home_assistant:home_assistant
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
init:
|
||||
condition: service_completed_successfully
|
||||
restart: true
|
||||
networks:
|
||||
- home_assistant_network
|
||||
ports:
|
||||
- 8123:8123
|
||||
environment:
|
||||
TZ: Europe/London
|
||||
volumes:
|
||||
- config:/config:rw
|
||||
|
||||
init:
|
||||
image: busybox:1.37.0
|
||||
user: root:root
|
||||
command: /init.sh
|
||||
restart: no
|
||||
network_mode: none
|
||||
volumes:
|
||||
- ./init.sh:/init.sh:ro
|
||||
# Used for resolving user and group names within the init script
|
||||
- /etc/passwd:/etc/passwd:ro
|
||||
- /etc/group:/etc/group:ro
|
||||
# Mount all named volumes so they can be initialised
|
||||
- config:/config:rw
|
||||
|
||||
volumes:
|
||||
config:
|
||||
|
||||
networks:
|
||||
home_assistant_network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user