Add PGDATA env var to db service in compose
This commit is contained in:
parent
48e67ad82a
commit
c51d5eb6bf
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue