Files
home-automation/docker-compose.yml
T

28 lines
682 B
YAML
Raw Permalink Normal View History

2026-04-19 20:19:58 +02:00
services:
2026-04-22 13:28:00 +02:00
migration:
container_name: home-automation-migration
image: code.wanderingbadger.dev/tliu93/home-automation:latest
user: "1000:1000"
restart: "no"
init: true
command: ["python", "-m", "scripts.run_migrations"]
volumes:
- ./data:/app/data
- ./.env:/app/.env:ro
2026-04-19 20:19:58 +02:00
app:
2026-04-20 20:40:04 +02:00
container_name: home-automation-app
image: code.wanderingbadger.dev/tliu93/home-automation:latest
2026-04-20 20:40:04 +02:00
user: "1000:1000"
restart: unless-stopped
init: true
2026-04-22 13:28:00 +02:00
depends_on:
migration:
condition: service_completed_successfully
2026-04-19 20:19:58 +02:00
ports:
2026-04-20 20:40:04 +02:00
- "127.0.0.1:8881:8000"
2026-04-19 20:19:58 +02:00
volumes:
- ./data:/app/data
2026-04-20 20:40:04 +02:00
- ./.env:/app/.env:ro
2026-04-20 20:50:46 +02:00