From 66f4eea77dd6074d368835a0cae9fd413f75c785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 17 Nov 2024 19:36:27 +0100 Subject: [PATCH] Update env file example to contain Volume mount point for DB folder --- .env.example | 3 +++ compose.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index e74875e..ab72682 100644 --- a/.env.example +++ b/.env.example @@ -9,6 +9,9 @@ DJANGO_STATIC_VOL=/path/to/static/root # Path to the media root. Must be served by a webserver on the media URL DJANGO_MEDIA_VOL=/path/to/media/root +# folder for DB +PGDATA_VOL=/path/to/pgdata + # Port to serve the App PORT=8000 diff --git a/compose.yaml b/compose.yaml index b9c9bb4..8182ea6 100644 --- a/compose.yaml +++ b/compose.yaml @@ -35,7 +35,7 @@ services: POSTGRES_PASSWORD: "${DJANGO_POSTGRESQL_PW:-p4ssw0rd}" POSTGRES_DB: "shimatta_kenkyusho" volumes: - - "${PGDATA:-./run/pgdata}:/var/lib/postgresql/data" + - "${PGDATA_VOL:-./run/pgdata}:/var/lib/postgresql/data" networks: - backendnet healthcheck: