Skip to content

Commit

Permalink
Added superuser password getter from env file
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-shiati committed Feb 28, 2022
1 parent f5d3a6c commit 0850ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ API_LOCAL_PORT=8080
API_DOCKER_PORT=8080

#Postgres port
POSTGRES_LOCAL_PORT=5432
POSTGRES_LOCAL_PORT=5434
POSTGRES_DOCKER_PORT=5432

#Database name (change this!)
Expand All @@ -13,6 +13,8 @@ DATABASE_USER=admin
#Database user password (change this!)
DATABASE_PASSWORD=adminpass
DATABASE_USE_SSL=false
#postgres user password (CHANGE THIS!)
POSTGRES_DEFAULT_PASSWORD_ENV=admin

#Deafult webservice admin username (change this!)
DEFAULT_ADMIN_USERNAME=admin
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- $POSTGRES_DOCKER_PORT
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
- POSTGRES_PASSWORD=$POSTGRES_DEFAULT_PASSWORD_ENV
- POSTGRES_DB_PASSWORD=$DATABASE_PASSWORD
- POSTGRES_DB_USER=$DATABASE_USER
- POSTGRES_DB_NAME=$DATABASE_NAME
Expand Down

0 comments on commit 0850ade

Please sign in to comment.