Skip to content

Commit

Permalink
Updated env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmathew committed Jul 5, 2024
1 parent 11b44a3 commit 4a2f088
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions admin-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ API

Add environment file (.env) with following properties
```
DATABASE_USER=<USER>
DATABASE_PASSWORD=<PAsSWORD>
DATABASE_NAME=<NAME>
DATASOURCE_USER=<USER>
DATASOURCE_PASSWORD=<PASSWORD>
DATASOURCE_URL=<URL>
```

To build
Expand Down
6 changes: 3 additions & 3 deletions admin-server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring.application.name=OpenID Federation

spring.datasource.url=jdbc:postgresql://localhost:5432/${DATABASE_NAME}
spring.datasource.username=${DATABASE_USER}
spring.datasource.password=${DATABASE_PASSWORD}
spring.datasource.url=${DATASOURCE_URL}
spring.datasource.username=${DATASOURCE_USER}
spring.datasource.password=${DATASOURCE_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver

# Mapping /actuator/health to /status
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ services:
image: postgres:latest
container_name: postgres_db
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATASOURCE_USER}
POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD}
POSTGRES_DB: openid-federation-db
ports:
- "5432:5432"
volumes:
Expand Down

0 comments on commit 4a2f088

Please sign in to comment.