feat(docker): add migrate-config service for database migrations
Some checks failed
CI / build-and-test (push) Failing after -32m38s

* Include amcs-migrate-config binary in Docker image
* Document migration commands in README
This commit is contained in:
2026-04-21 21:18:34 +02:00
parent 14e218d784
commit 7f9c6f122e
4 changed files with 42 additions and 1 deletions

View File

@@ -36,6 +36,18 @@ services:
ports:
- "8080:8080"
migrate-config:
build:
context: .
profiles: ["tools"]
restart: "no"
volumes:
- ./configs:/app/configs
environment:
AMCS_CONFIG: /app/configs/docker.yaml
entrypoint: ["/app/amcs-migrate-config"]
command: ["--config", "/app/configs/docker.yaml", "--dry-run"]
volumes:
postgres_data: