add NFS volume to grav

This commit is contained in:
Andreas Zweili 2022-03-07 11:13:47 +01:00
parent cfc16150ce
commit 7b33ee8a35
1 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,7 @@ services:
environment:
VIRTUAL_HOST: www.2li.ch
volumes:
- ./data:/usr/html
- grav:/usr/html
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
@ -27,3 +27,10 @@ services:
- "traefik.http.routers.grav.tls.certresolver=myresolver"
- "traefik.http.services.grav.loadbalancer.server.port=80"
- "traefik.http.routers.grav.middlewares=default-headers@file"
volumes:
grav:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,soft,rw,vers=4.1"
device: ":/server_data/grav"