From 567d92ca34b132d10e2d23cc035739504fd8b98b Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sat, 4 Apr 2026 23:20:04 +0200 Subject: [PATCH] fix: let Flyway inherit datasource connection instead of separate URL Explicit spring.flyway.url/user/password used SPRING_DATASOURCE_URL env var but Flyway resolves its own defaults independently, falling back to localhost when the env var mapping doesn't match. Removing the explicit Flyway connection config lets it inherit from the datasource, which is correctly configured. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main/resources/application.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 138bd57..7a4bd66 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -12,9 +12,6 @@ spring: flyway: enabled: true locations: classpath:db/migration - url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://postgres:5432/cameleer_saas} - user: ${SPRING_DATASOURCE_USERNAME:cameleer} - password: ${SPRING_DATASOURCE_PASSWORD:cameleer_dev} security: oauth2: resourceserver: