Add nfs server.

This commit is contained in:
2022-03-11 06:14:49 +01:00
parent f4b90c43b3
commit f703725371

View File

@@ -18,7 +18,7 @@ networks:
driver: macvlan
enable_ipv6: true
driver_opts:
parent: enp3s0
parent: enp2s0
ipam:
config:
- subnet: 192.168.178.0/24
@@ -94,3 +94,18 @@ services:
- samba-config:/etc/samba
- /media/backup:/mnt
nfs:
image: erichough/nfs-server
container_name: nfs
hostname: nfs
privileged: true
networks:
- networking
ports:
- "2049:2049"
environment:
NFS_EXPORT_0: /nfs-share 192.168.178.0/24(rw,no_subtree_check)
volumes:
- /media/backup:/nfs-share
restart: unless-stopped