Skip to content

Commit

Permalink
fix: temporarily hardcode db credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Jul 9, 2024
1 parent 0f15a78 commit 42c576d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DATASOURCE_URL=jdbc:postgresql://localhost:5432/openid-federation-db
DATASOURCE_USER=openid-federation-db-user
DATASOURCE_PASSWORD=openid-federation-db-password
DATASOURCE_DB=openid-federation-db
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml → docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.9'
services:
db:
image: postgres:latest
container_name: postgres_db
container_name: openid-federation-datastore
environment:
POSTGRES_USER: ${DATASOURCE_USER}
POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
spring.application.name=OpenID Federation

spring.datasource.url=${DATASOURCE_URL}
spring.datasource.username=${DATASOURCE_USER}
spring.datasource.password=${DATASOURCE_PASSWORD}
spring.datasource.url=jdbc:postgresql://localhost:5432/openid-federation-db
#spring.datasource.username=openid-federation-db-user
#spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=openid-federation-db-user

spring.datasource.password=openid-federation-db-password
spring.datasource.driver-class-name=org.postgresql.Driver

# Mapping /actuator/health to /status
Expand Down

0 comments on commit 42c576d

Please sign in to comment.