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
This commit is contained in:
maxlath
2025-02-27 19:18:02 +01:00
parent abbfa8216d
commit f30a03a304

View File

@@ -11,7 +11,7 @@ services:
- elasticsearch - elasticsearch
# Uncomment if you want to access the code: # Uncomment if you want to access the code:
volumes: volumes:
- ./inventaire/server:/opt/inventaire - inventaire-server:/opt/inventaire
logging: logging:
options: options:
max-size: "10m" max-size: "10m"
@@ -56,7 +56,7 @@ services:
volumes: volumes:
- ./nginx/templates:/etc/nginx/templates/ - ./nginx/templates:/etc/nginx/templates/
- ./nginx/snippets:/etc/nginx/snippets - ./nginx/snippets:/etc/nginx/snippets
- ./inventaire/server:/opt/inventaire - inventaire-server:/opt/inventaire
- certbot-www:/var/www/certbot - certbot-www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt - ./certbot/conf:/etc/letsencrypt
env_file: .env env_file: .env
@@ -78,3 +78,4 @@ volumes:
couchdb: couchdb:
elasticsearch: elasticsearch:
certbot-www: certbot-www:
inventaire-server: