codex changes
This commit is contained in:
@@ -80,5 +80,22 @@ services:
|
||||
restart: unless-stopped
|
||||
# Database should not be exposed to proxy network for security
|
||||
|
||||
flyway:
|
||||
image: flyway/flyway:9
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- FLYWAY_URL=jdbc:postgresql://db:5432/${DB_NAME:-turftracker}
|
||||
- FLYWAY_USER=${DB_USER:-turftracker}
|
||||
- FLYWAY_PASSWORD=${DB_PASSWORD:-password123}
|
||||
# Uncomment if you need to baseline an existing DB without schema history
|
||||
# - FLYWAY_BASELINE_ON_MIGRATE=true
|
||||
command: -locations=filesystem:/migrations migrate
|
||||
volumes:
|
||||
- ./database/migrations:/migrations:ro
|
||||
networks:
|
||||
- turftracker
|
||||
# Not started automatically; run with: docker compose run --rm flyway migrate
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user