change adoption to separate step
pytest / test (push) Failing after 46s
pytest / test (pull_request) Failing after 45s

This commit is contained in:
2026-04-22 13:28:00 +02:00
parent 35aee79d93
commit a76d6bfb71
12 changed files with 363 additions and 25 deletions
+14
View File
@@ -1,10 +1,24 @@
services:
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
app:
container_name: home-automation-app
image: code.wanderingbadger.dev/tliu93/home-automation:latest
user: "1000:1000"
restart: unless-stopped
init: true
depends_on:
migration:
condition: service_completed_successfully
ports:
- "127.0.0.1:8881:8000"
volumes: