Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7ce562de6 |
+16
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user