chore: configure docker-compose.local.yml with consolidated schema and Flyway baseline

This commit is contained in:
tiny Flutter team 2026-04-07 23:34:04 +07:00
parent ff6bf2d6ac
commit f4652f79d8

View file

@ -12,7 +12,8 @@ services:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/01-init.sql
- ./komga/src/flyway/resources/db/migration/postgresql/V001__initial_migration.sql:/docker-entrypoint-initdb.d/02-schema.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U komga" ]
interval: 10s
@ -37,6 +38,8 @@ services:
KOMGA_DATABASE_POOL_SIZE: 10
KOMGA_DATABASE_MAX_POOL_SIZE: 10
SPRING_FLYWAY_ENABLED: "true"
SPRING_FLYWAY_BASELINE_ON_MIGRATE: "true"
SPRING_FLYWAY_BASELINE_VERSION: "20250730173126"
ports:
- "25600:25600"
volumes: