Skip to content

Commit eeda2c9

Browse files
committed
Specify database password
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
1 parent 3282217 commit eeda2c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: docker-compose.test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ services:
2626
- db
2727
environment:
2828
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_USERNAME: postgres
29+
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_PASSWORD: password
2930
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_HOST: db
3031
env_file:
3132
- .env.test
@@ -36,6 +37,8 @@ services:
3637
image: postgres
3738
volumes:
3839
- db-data:/var/lib/postgresql/data
40+
environment:
41+
POSTGRES_PASSWORD: password
3942

4043
volumes:
4144
db-data:

0 commit comments

Comments
 (0)