Skip to content

Commit f35b407

Browse files
committed
Set PostgreSQL password in CircleCI build
The `postgres` Docker image now requires a password to be set. This change sets a password in the CircleCI build to meet that requirement. See docker-library/postgres#681 for more information.
1 parent b69d7dd commit f35b407

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.circleci/config.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ job_defaults: &job_defaults
2929
ADMIN_OAUTH2_LOGOUT_PATH: '/o/logout'
3030
ACTIVITY_STREAM_ACCESS_KEY_ID: some-id
3131
ACTIVITY_STREAM_SECRET_ACCESS_KEY: some-secret
32-
DATABASE_URL: postgresql://postgres@localhost/datahub
33-
MI_DATABASE_URL: postgresql://postgres@mi-postgres/mi
32+
DATABASE_URL: postgresql://postgres:datahub@postgres/datahub
33+
MI_DATABASE_URL: postgresql://postgres:datahub@mi-postgres/mi
3434
DEBUG: 'True'
3535
DJANGO_SECRET_KEY: changeme
3636
DJANGO_SETTINGS_MODULE: config.settings.local
@@ -56,13 +56,16 @@ job_defaults: &job_defaults
5656
- image: <<parameters.es_image>>
5757

5858
- image: <<parameters.postgres_image>>
59+
name: postgres
5960
environment:
60-
POSTGRES_DB=datahub
61+
POSTGRES_DB: datahub
62+
POSTGRES_PASSWORD: datahub
6163

6264
- image: <<parameters.mi_postgres_image>>
6365
name: mi-postgres
6466
environment:
65-
POSTGRES_DB=mi
67+
POSTGRES_DB: mi
68+
POSTGRES_PASSWORD: datahub
6669

6770
steps:
6871
- checkout

0 commit comments

Comments
 (0)