Files
home-automation/docker-compose.yml
T
tliu93 f6ef99e34f
frontend / frontend (push) Successful in 1m12s
pytest / test (push) Successful in 4m31s
docker-image / build-and-push (push) Successful in 1m51s
MQTT-FIX-T02: bound Docker logs and document production rollout
2026-10-11 23:59:38 +02:00

47 lines
1.2 KiB
YAML

services:
migration:
container_name: home-automation-migration
image: code.wanderingbadger.dev/tliu93/home-automation:latest
user: "1000:1000"
restart: "no"
init: true
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
command: ["python", "-m", "scripts.run_migrations"]
environment:
TZ: "${TZ:-Europe/Amsterdam}"
volumes:
- ./data:/app/data
- ./.env:/app/.env:ro
- /etc/localtime:/etc/localtime:ro
app:
container_name: home-automation-app
image: code.wanderingbadger.dev/tliu93/home-automation:latest
user: "1000:1000"
restart: unless-stopped
init: true
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
environment:
TZ: "${TZ:-Europe/Amsterdam}"
depends_on:
migration:
condition: service_completed_successfully
ports:
- "127.0.0.1:8881:8000"
devices:
- "${WARMTELINK_DEVICE_PATH:?Set a stable /dev/serial/by-id path}:/dev/warmtelink:rw"
group_add:
- "${WARMTELINK_SERIAL_GID:?Set the host serial device GID}"
volumes:
- ./data:/app/data
- ./.env:/app/.env:ro
- /etc/localtime:/etc/localtime:ro