Files
homeassistant-prod/docker-compose.yml
2026-03-21 14:25:17 +01:00

84 lines
2.1 KiB
YAML
Executable File

services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:${VERSION}
volumes:
- /home/basti/Projects/smarthome:/config
- /home/basti/Projects/smarthome/ssl:/config/ssl
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/ttyACM1:/dev/ttyACM1
restart: unless-stopped
privileged: true
network_mode: host
depends_on:
# - mariadb
- postgres
# - mariadb_1x
- mosquitto
# - zigbee2mqtt
labels:
# Only include tags that look like X.Y.Z
- "wud.tag.include=^\\d+\\.\\d+\\.\\d+$$"
postgres:
container_name: ha-postgres-db
image: postgres:15-alpine
env_file: .env
environment:
POSTGRES_DB: "${HA_DB_DATABASE}"
POSTGRES_PASSWORD: "${HA_DB_PASSWORD}"
POSTGRES_USER: "${HA_DB_USER}"
restart: always
ports:
- 5433:5432
volumes:
- ha-postgres-db:/var/lib/postgresql/data
labels:
- "wud.tag.include=^\\d+-alpine$$"
- "wud.watch.digest=true"
mosquitto:
container_name: mosquitto
# image: eclipse-mosquitto:2.0.21
image: eclipse-mosquitto:1.6.15
restart: always
ports:
- 1883:1883
- 9001:9001
volumes:
- /etc/localtime:/etc/localtime:ro
- mosquitto_data:/mosquitto/data
- ./mosq_config:/mosquitto/config:ro
- ./mosq_log:/mosquitto/log
# - /srv/docker/mosquitto/config:/mosquitto/config
# - /srv/docker/mosquitto/log:/mosquitto/log
environment:
TZ: ${TZ}
nodered:
image: nodered/node-red:${NODEREDTAG}
container_name: nodered
restart: unless-stopped
ports:
- 1880:1880
environment:
TZ: ${TZ}
volumes:
- /etc/localtime:/etc/localtime:ro
- nodered_data:/data
#user: "${LOCAL_USER}:${LOCAL_USER}"
depends_on:
- homeassistant
volumes:
nodered_data: {}
mosquitto_data: {}
zwavejs_data: {}
zigbee2mqtt_data: {}
ha-postgres-db:
name: ha-postgres-db