diff --git a/docker-compose.yml b/docker-compose.yml index e68332d69..982d5731a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,8 @@ services: # use the preferred version of the official Postgres image # see https://hub.docker.com/_/postgres/ image: postgres:9.6.21 - + environment: + - POSTGRES_PASSWORD=$POSTGRES_PASSWORD # persist the database between containers by storing it in a volume volumes: - docker-example-postgres:/var/lib/postgresql/data @@ -37,6 +38,7 @@ services: - bundle:/usr/local/bundle:delegated - "$SSH_AUTH_SOCK:/tmp/agent.sock" environment: + - POSTGRES_PASSWORD=$POSTGRES_PASSWORD - SSH_AUTH_SOCK=/tmp/agent.sock volumes: docker-example-postgres: {}