addition of persistent NFS volumes

This commit is contained in:
Andrew Amason
2024-12-30 15:07:41 -05:00
parent 32b790dc19
commit 1f4e4e400c

View File

@@ -5,9 +5,21 @@ services:
image: hugomods/hugo:base-non-root image: hugomods/hugo:base-non-root
command: server -D command: server -D
volumes: volumes:
- ./:/src - nfs_hugo_src:/src
- ~/hugo_cache:/tmp/hugo_cache - nfs_hugo_cache:/tmp/hugo_cache
ports: ports:
- 1313:1313 - 1313:1313
expose: expose:
- 1313 - 1313
volumes:
nfs_hugo_src:
driver_opts:
type: nfs
o: addr=172.24.3.23,rw,nolock,soft
device: :/volume1/docker/hugo/src
nfs_hugo_cache:
driver_opts:
type: nfs
o: addr=172.24.3.23,rw,nolock,soft
device: :/volume1/docker/hugo/cache