forked from tldr-devops/startpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nfs.yml
33 lines (31 loc) · 770 Bytes
/
nfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3.8'
x-service: &service
logging:
driver: json-file
options:
max-size: "100m"
max-file: "2"
restart: always
services:
# https://sysadmins.co.za/setup-a-nfs-server-with-docker/
nfs:
container_name: nfs
image: itsthenetwork/nfs-server-alpine:12
ports:
- 2049:2049
deploy:
resources:
reservations:
cpus: '0.01'
memory: 50M
<<: *service
environment:
SHARED_DIRECTORY: ${DATAPATH?Variable DATAPATH not set}
PERMITTED: ${MASTER_IP_MASK?Variable MASTER_IP_MASK not set}
volumes:
- ${DATAPATH?Variable DATAPATH not set}:${DATAPATH?Variable DATAPATH not set}
privileged: true
cap_add:
- ALL
entrypoint: /usr/bin/nfsd.sh
user: root