Add default root password to postgres service definition

This commit is contained in:
Szymon Krajewski 2020-03-13 13:52:22 +01:00
parent 094a771c24
commit c4eaaf5b7a
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ services:
postgresql: postgresql:
image: postgres:9.6-alpine image: postgres:9.6-alpine
environment:
- POSTGRES_PASSWORD=root
volumes: volumes:
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d - ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
- postgresqldata:/var/lib/postgresql/data - postgresqldata:/var/lib/postgresql/data

View File

@ -27,6 +27,8 @@ services:
postgresql: postgresql:
image: postgres:9.6-alpine image: postgres:9.6-alpine
environment:
- POSTGRES_PASSWORD=root
volumes: volumes:
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d - ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
- postgresqldata:/var/lib/postgresql/data - postgresqldata:/var/lib/postgresql/data