Skip to content

Commit

Permalink
Specify database password
Browse files Browse the repository at this point in the history
The `postgres` Docker image now requires a password to be set, so this sets
a `POSTGRES_PASSWORD` env variable in the `db` container, and a
corresponding
`DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_PASSWORD` var in the
`test` container.

More info here docker-library/postgres#681
  • Loading branch information
pezholio committed Feb 17, 2020
1 parent 3282217 commit eeda2c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
- db
environment:
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_USERNAME: postgres
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_PASSWORD: password
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_HOST: db
env_file:
- .env.test
Expand All @@ -36,6 +37,8 @@ services:
image: postgres
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password

volumes:
db-data:

0 comments on commit eeda2c9

Please sign in to comment.