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: - postgres 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" 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