addition of persistent NFS volumes
This commit is contained in:
16
compose.yaml
16
compose.yaml
@@ -5,9 +5,21 @@ services:
|
||||
image: hugomods/hugo:base-non-root
|
||||
command: server -D
|
||||
volumes:
|
||||
- ./:/src
|
||||
- ~/hugo_cache:/tmp/hugo_cache
|
||||
- nfs_hugo_src:/src
|
||||
- nfs_hugo_cache:/tmp/hugo_cache
|
||||
ports:
|
||||
- 1313:1313
|
||||
expose:
|
||||
- 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
|
||||
Reference in New Issue
Block a user