Add nfs server.
This commit is contained in:
@@ -18,7 +18,7 @@ networks:
|
|||||||
driver: macvlan
|
driver: macvlan
|
||||||
enable_ipv6: true
|
enable_ipv6: true
|
||||||
driver_opts:
|
driver_opts:
|
||||||
parent: enp3s0
|
parent: enp2s0
|
||||||
ipam:
|
ipam:
|
||||||
config:
|
config:
|
||||||
- subnet: 192.168.178.0/24
|
- subnet: 192.168.178.0/24
|
||||||
@@ -94,3 +94,18 @@ services:
|
|||||||
- samba-config:/etc/samba
|
- samba-config:/etc/samba
|
||||||
- /media/backup:/mnt
|
- /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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user