Files
home-assistant-alt/docker-compose.old
T
2024-01-11 15:10:51 +03:00

60 lines
1.3 KiB
Plaintext

version: '3'
services:
mosquitto:
build: ./mosquitto/docker
container_name: mosquitto
env_file: ./mosquitto/settings/mqtt.env
ports:
- "1883:1883"
restart: always
logging:
driver: json-file
options:
max-size: 50m
hass:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: hass
volumes:
- ./hass/settings:/config
- /run/dbus:/run/dbus:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8123:8123"
depends_on:
- mosquitto
#network_mode: "host"
#privileged: true
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8123"]
interval: 30s
timeout: 10s
retries: 6
logging:
driver: json-file
options:
max-size: 50m
zigbee2mqtt:
image: koenkk/zigbee2mqtt:latest-dev
container_name: zigbee2mqtt
ports:
- "8080:8080"
volumes:
- ./zigbee2mqtt/settings:/app/data
devices:
- "/dev/ttyS2:/dev/ttyS2"
depends_on:
- mosquitto
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 6
restart: always
logging:
driver: json-file
options:
max-size: 50m