docker compose sample
All checks were successful
Build and Deploy Spring Boot Server / build (push) Successful in 10m1s

This commit is contained in:
2025-01-11 20:24:33 +01:00
parent 12f6733b48
commit d39b5e875c
3 changed files with 20 additions and 8 deletions

View File

@@ -18,6 +18,7 @@ public class XpenselyServerApplication {
System.setProperty("DB_PASSWORD", dotenv.get("DB_PASSWORD"));
System.setProperty("DB_DEV_CONTAINER", dotenv.get("DB_DEV_CONTAINER"));
System.setProperty("DB_DEV_NAME", dotenv.get("DB_DEV_NAME"));
System.setProperty("DB_PORT", dotenv.get("DB_PORT"));
SpringApplication.run(XpenselyServerApplication.class, args);
}

View File

@@ -8,7 +8,7 @@ spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_CLIENT_
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://accounts.google.com
# PostgreSQL Configuration
spring.datasource.url=jdbc:postgresql://${DB_DEV_CONTAINER}:5432/${DB_DEV_NAME}
spring.datasource.url=jdbc:postgresql://${DB_DEV_CONTAINER}:${DB_PORT}/${DB_DEV_NAME}
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver