-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (39 loc) · 902 Bytes
/
docker-compose.yml
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
35
36
37
38
39
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
ports:
- '8123:8123'
healthcheck:
test: ["CMD", "curl", "-f", "http://homeassistant:8123"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
start_interval: 15s
deploy:
resources:
limits:
memory: 1G
tunnel:
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel run
environment:
- NO_AUTOUPDATE
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
depends_on:
homeassistant:
condition: service_healthy
restart: true
deploy:
resources:
limits:
memory: 256M
networks:
default: