From c51d5eb6bf216f9aaf2c2ef423172b92e11e4639 Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Thu, 6 May 2021 05:52:29 +0200 Subject: [PATCH 1/2] Add PGDATA env var to db service in compose --- compose/docker-compose.yml | 1 + examples/harvest/docker-compose.yml | 1 + examples/s3filestore/docker-compose.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index c5c17b6..3ea6a4d 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -58,6 +58,7 @@ services: args: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - PGDATA=/var/lib/postgresql/data/db networks: - backend environment: diff --git a/examples/harvest/docker-compose.yml b/examples/harvest/docker-compose.yml index 7ad2d70..775e75c 100644 --- a/examples/harvest/docker-compose.yml +++ b/examples/harvest/docker-compose.yml @@ -156,6 +156,7 @@ services: args: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - PGDATA=/var/lib/postgresql/data/db networks: - backend environment: diff --git a/examples/s3filestore/docker-compose.yml b/examples/s3filestore/docker-compose.yml index 45d8359..d3bdb4c 100644 --- a/examples/s3filestore/docker-compose.yml +++ b/examples/s3filestore/docker-compose.yml @@ -61,6 +61,7 @@ services: environment: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - PGDATA=/var/lib/postgresql/data/db volumes: - pg_data:/var/lib/postgresql/data healthcheck: From 896de5a40fd2209e9624f7c30a943b26853460d3 Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Fri, 7 May 2021 06:03:06 +0200 Subject: [PATCH 2/2] Move PGDATA env var to environment section --- compose/docker-compose.yml | 2 +- examples/harvest/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index 3ea6a4d..5711653 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -58,12 +58,12 @@ services: args: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - - PGDATA=/var/lib/postgresql/data/db networks: - backend environment: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - PGDATA=/var/lib/postgresql/data/db volumes: - pg_data:/var/lib/postgresql/data healthcheck: diff --git a/examples/harvest/docker-compose.yml b/examples/harvest/docker-compose.yml index 775e75c..f0f2d5f 100644 --- a/examples/harvest/docker-compose.yml +++ b/examples/harvest/docker-compose.yml @@ -156,12 +156,12 @@ services: args: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - - PGDATA=/var/lib/postgresql/data/db networks: - backend environment: - DS_RO_PASS=${DATASTORE_READONLY_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - PGDATA=/var/lib/postgresql/data/db volumes: - pg_data:/var/lib/postgresql/data healthcheck: