From c1ea9c4197d6161f54913c4e1e56ad51f6505bf6 Mon Sep 17 00:00:00 2001 From: hitanshu310 Date: Fri, 23 Jan 2026 23:23:39 +0530 Subject: [PATCH] Fix database URL configuration for docker-compose compatibility - Hardcode PostgreSQL connection URL to match docker service name 'postgres' - Remove DB_URL environment variable dependency that was causing startup failures - Keep username/password as environment variables for flexibility --- src/main/resources/application-prod.properties | 2 +- src/main/resources/application-test.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 9b2c0b6..cb15c36 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,7 +1,7 @@ api.baseUrl=https://cftunnels.hithomelabs.com # Production Database Configuration -spring.datasource.url=${DB_URL} +spring.datasource.url=jdbc:postgresql://postgres:5432/cftunnel spring.datasource.username=${POSTGRES_USERNAME} spring.datasource.password=${POSTGRES_PASSWORD} spring.datasource.driver-class-name=org.postgresql.Driver diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties index bb6d864..b257503 100644 --- a/src/main/resources/application-test.properties +++ b/src/main/resources/application-test.properties @@ -1,7 +1,7 @@ api.baseUrl=https://testcf.hithomelabs.com # Test Database Configuration - Same as Production -spring.datasource.url=${DB_URL} +spring.datasource.url=jdbc:postgresql://postgres:5432/cftunnel spring.datasource.username=${POSTGRES_USERNAME} spring.datasource.password=${POSTGRES_PASSWORD} spring.datasource.driver-class-name=org.postgresql.Driver