feat(docker): add migrate-config service for database migrations
Some checks failed
CI / build-and-test (push) Failing after -32m38s
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:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user