From 64a5edac7857b7362058f9347284bb2ad14fd5db Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sat, 4 Apr 2026 22:54:18 +0200 Subject: [PATCH] fix: add explicit datasource defaults to application.yml Without an explicit spring.datasource.url, Spring Boot falls back to jdbc:postgresql://localhost:5432 when the SPRING_DATASOURCE_URL env var is missing or not picked up. Default now points to the docker-compose service name (postgres:5432/cameleer_saas). Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main/resources/application.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 107b0be..3b72192 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,10 @@ spring: application: name: cameleer-saas + datasource: + url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://postgres:5432/cameleer_saas} + username: ${SPRING_DATASOURCE_USERNAME:cameleer} + password: ${SPRING_DATASOURCE_PASSWORD:cameleer_dev} jpa: open-in-view: false hibernate: