Files
2026-moving-helper/docker-compose.yml
T

26 lines
603 B
YAML
Raw Normal View History

2026-06-01 21:42:59 +02:00
x-app-base: &app-base
2026-04-21 22:01:23 +02:00
image: "code.wanderingbadger.dev/tliu93/2026-moving-helper:latest"
2026-04-19 12:13:07 +02:00
build:
context: .
user: "1000:1000"
2026-04-19 12:13:07 +02:00
environment:
2026-04-19 13:33:43 +02:00
DATABASE_URL: ${DATABASE_URL:-sqlite:////app/data/app.db}
2026-04-19 12:13:07 +02:00
volumes:
2026-04-19 13:33:43 +02:00
- ${DATA_DIR:-./data}:/app/data
2026-06-01 21:42:59 +02:00
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"
2026-04-19 12:13:07 +02:00
restart: unless-stopped