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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user