From 75bec0e4eb4f5a4a8a3f8c3a534873e65d60ce10 Mon Sep 17 00:00:00 2001 From: HybridSarcasm <7719414+HybridSarcasm@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:04:13 -0400 Subject: [PATCH 1/2] Docker volume for 'events folder' Added docker-compose example for mounting a volume for the /app/public/events directory. This can be helpful because rebuilding the docker image per instructions causes user-uploaded images to be lost. Using a persistent volume prevents this data loss when rebuilding. --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9677edd..714362f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,8 @@ services: - 3000:3000 volumes: # Set the correct path to the config folder - - ./gathio-docker:/app/config + - ./gathio-docker/config:/app/config + - ./gathio-docker/events:/app/public/events mongo: image: mongo:latest volumes: From 8d27e493a63f583e7cc936ac8fd9a3b11a864c80 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 27 Jul 2024 18:32:49 +0100 Subject: [PATCH 2/2] Update comments in Dockerfile --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 714362f..a7a3f59 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,9 @@ services: ports: - 3000:3000 volumes: - # Set the correct path to the config folder + # The path to Gathio's config folder - change to match your system - ./gathio-docker/config:/app/config + # The path to Gathio's user-uploaded event images folder - change to match your system - ./gathio-docker/events:/app/public/events mongo: image: mongo:latest