1 Commits

Author SHA1 Message Date
tliu93 e7ce562de6 Run migrations before web startup
test / pytest (push) Successful in 1m22s
2026-06-01 21:42:59 +02:00
+16 -5
View File
@@ -1,14 +1,25 @@
services:
web:
container_name: moving-helper
x-app-base: &app-base
image: "code.wanderingbadger.dev/tliu93/2026-moving-helper:latest"
build:
context: .
user: "1000:1000"
ports:
- "127.0.0.1:${APP_PORT:-10000}:10000"
environment:
DATABASE_URL: ${DATABASE_URL:-sqlite:////app/data/app.db}
volumes:
- ${DATA_DIR:-./data}:/app/data
services:
migrate:
<<: *app-base
command: ["python", "-m", "app.migrate"]
restart: "no"
web:
<<: *app-base
container_name: moving-helper
depends_on:
migrate:
condition: service_completed_successfully
ports:
- "127.0.0.1:${APP_PORT:-10000}:10000"
restart: unless-stopped