-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.yml
54 lines (52 loc) · 1.52 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3'
services:
zigbee2mqtt:
# This is my new Zigbee setup, running on a Zig-A-Zig-Ah!
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt:latest
volumes:
- /data/zigbee2mqtt:/app/data
devices:
- /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0:/dev/ttyACM0
restart: unless-stopped
ports:
- "8080:8080/tcp"
environment:
- TZ=Etc/UTC
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 3
home-assistant:
# This is my test/mess about install
container_name: home-assistant
image: homeassistant/home-assistant:stable
volumes:
- /data/homeassistant:/config
environment:
- TZ=Europe/London
restart: unless-stopped
network_mode: host
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8123"]
interval: 1m
timeout: 10s
retries: 3
mosquitto:
# Mosquitto, duh :D
container_name: mosquitto
image: eclipse-mosquitto:2
volumes:
- /data/mosquitto/config:/mosquitto/config
- /data/mosquitto/data:/mosquitto/data
- /data/mosquitto/log:/mosquitto/log
restart: unless-stopped
ports:
- "1883:1883/tcp"
healthcheck:
test: ["CMD", "mosquitto_sub", "-h", "localhost", "-t", "$$SYS/broker/uptime", "-i", "docker_health_check", "-C", "1"]
interval: 30s
timeout: 10s
retries: 3
# NB: I use an acl_file that gives the anonymous user only read access to that topic, nothing else