From f30a03a304d37c50a040028c547226fd5deb8cf0 Mon Sep 17 00:00:00 2001 From: maxlath Date: Thu, 27 Feb 2025 19:18:02 +0100 Subject: [PATCH] docker-compose.yml: share inventaire files with nginx through a named volume as using a host path seems to result in that path being empty o_O Possibly has to do with https://forums.docker.com/t/docker-volume-deleting-content-from-container-when-started/28168 --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1057539..db32e73 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: - elasticsearch # Uncomment if you want to access the code: volumes: - - ./inventaire/server:/opt/inventaire + - inventaire-server:/opt/inventaire logging: options: max-size: "10m" @@ -56,7 +56,7 @@ services: volumes: - ./nginx/templates:/etc/nginx/templates/ - ./nginx/snippets:/etc/nginx/snippets - - ./inventaire/server:/opt/inventaire + - inventaire-server:/opt/inventaire - certbot-www:/var/www/certbot - ./certbot/conf:/etc/letsencrypt env_file: .env @@ -78,3 +78,4 @@ volumes: couchdb: elasticsearch: certbot-www: + inventaire-server: