Add PGDATA env var to db service in compose

This commit is contained in:
Marko Bocevski 2021-05-06 05:52:29 +02:00
parent 48e67ad82a
commit c51d5eb6bf
No known key found for this signature in database
GPG Key ID: C5B52A3811855AB3
3 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,7 @@ services:
args: args:
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGDATA=/var/lib/postgresql/data/db
networks: networks:
- backend - backend
environment: environment:

View File

@ -156,6 +156,7 @@ services:
args: args:
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGDATA=/var/lib/postgresql/data/db
networks: networks:
- backend - backend
environment: environment:

View File

@ -61,6 +61,7 @@ services:
environment: environment:
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGDATA=/var/lib/postgresql/data/db
volumes: volumes:
- pg_data:/var/lib/postgresql/data - pg_data:/var/lib/postgresql/data
healthcheck: healthcheck: