Set an explicit username/password for Postgres in the other Compose files too

This commit is contained in:
Peter Valdez 2020-02-19 14:44:32 -05:00
parent a8888af480
commit 7d1e4a982d
3 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,9 @@ services:
db: db:
image: postgres:9.4 image: postgres:9.4
container_name: db container_name: db
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes: volumes:
- "db-data:/var/lib/postgresql/data" - "db-data:/var/lib/postgresql/data"
networks: networks:

View File

@ -7,6 +7,9 @@ services:
- "6379:6379" - "6379:6379"
db: db:
image: postgres:9.4 image: postgres:9.4
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports: ports:
- "5432:5432" - "5432:5432"
vote: vote:

View File

@ -18,6 +18,9 @@ services:
db: db:
image: postgres:9.4 image: postgres:9.4
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
result: result:
build: ./result build: ./result