codex changes

This commit is contained in:
Jake Kasper
2025-09-02 07:02:34 -05:00
parent e75be978fa
commit 4853eff749
6 changed files with 171 additions and 42 deletions

View File

@@ -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: