From 12535369b440a5a7c845751ca544609f64a1e38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Busch?= Date: Sat, 7 Jan 2023 19:39:40 +0100 Subject: [PATCH 1/2] Fix example postgres docker-compose setup in docs Add a local volume to postgres container so changes get persisted between restarts --- .../documentation/getting-started/installation/postgres.md | 4 ++++ docs/docs/overrides/api.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/documentation/getting-started/installation/postgres.md b/docs/docs/documentation/getting-started/installation/postgres.md index cc659389fab..3aa94d9c01f 100644 --- a/docs/docs/documentation/getting-started/installation/postgres.md +++ b/docs/docs/documentation/getting-started/installation/postgres.md @@ -55,6 +55,8 @@ services: container_name: postgres image: postgres restart: always + volumes: + - mealie-pgdata:/app/data/ environment: POSTGRES_PASSWORD: mealie POSTGRES_USER: mealie @@ -62,6 +64,8 @@ services: volumes: mealie-data: driver: local + mealie-pgdata: + driver: local ``` diff --git a/docs/docs/overrides/api.html b/docs/docs/overrides/api.html index 0ad2bc79dfb..56f2bf17a5a 100644 --- a/docs/docs/overrides/api.html +++ b/docs/docs/overrides/api.html @@ -14,7 +14,7 @@
From 6fa44c5d5e6157a4eca5bbb01633ebf70db55a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Busch?= Date: Sat, 7 Jan 2023 20:33:28 +0100 Subject: [PATCH 2/2] Fix linked volume in postgres doc --- .../docs/documentation/getting-started/installation/postgres.md | 2 +- docs/docs/overrides/api.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/documentation/getting-started/installation/postgres.md b/docs/docs/documentation/getting-started/installation/postgres.md index 3aa94d9c01f..058ef3560d5 100644 --- a/docs/docs/documentation/getting-started/installation/postgres.md +++ b/docs/docs/documentation/getting-started/installation/postgres.md @@ -56,7 +56,7 @@ services: image: postgres restart: always volumes: - - mealie-pgdata:/app/data/ + - mealie-pgdata:/var/lib/postgresql environment: POSTGRES_PASSWORD: mealie POSTGRES_USER: mealie diff --git a/docs/docs/overrides/api.html b/docs/docs/overrides/api.html index 56f2bf17a5a..2fd24048046 100644 --- a/docs/docs/overrides/api.html +++ b/docs/docs/overrides/api.html @@ -14,7 +14,7 @@