summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorHybridSarcasm <7719414+HybridSarcasm@users.noreply.github.com>2024-07-26 12:04:13 -0400
committerGitHub <noreply@github.com>2024-07-26 12:04:13 -0400
commit75bec0e4eb4f5a4a8a3f8c3a534873e65d60ce10 (patch)
tree96e9a1fdf8359a5fd89d17a8d8be25b985a2b01c /docker-compose.yml
parent68f5ce96ee19c77d46ddcdd18eefad6257cd47fa (diff)
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.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml3
1 files changed, 2 insertions, 1 deletions
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: