forked from hectorm/docker-nfs-ganesha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
44 lines (37 loc) · 1.02 KB
/
compose.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
34
35
36
37
38
39
40
41
42
43
44
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
name: "nfs-ganesha"
# https://hub.docker.com/r/hectorm/nfs-ganesha
x-nfs-ganesha-image: &nfs-ganesha-image "docker.io/hectorm/nfs-ganesha:latest"
services:
nfs-ganesha:
image: *nfs-ganesha-image
restart: "always"
container_name: "nfs-ganesha"
hostname: "nfs-ganesha"
read_only: true
cap_drop:
- "ALL"
cap_add:
- "CHOWN"
- "DAC_OVERRIDE"
- "DAC_READ_SEARCH"
- "FOWNER"
- "FSETID"
- "SETGID"
- "SETUID"
- "SYS_RESOURCE"
networks:
- "nfs-ganesha"
ports:
- "127.0.0.1:2049:2049/tcp"
volumes:
- { type: "volume", source: "nfs-ganesha-export", target: "/export/" }
- { type: "tmpfs", target: "/run/" }
- { type: "tmpfs", target: "/tmp/" }
- { type: "tmpfs", target: "/recovery/" }
volumes:
nfs-ganesha-export:
name: "nfs-ganesha-export"
networks:
nfs-ganesha:
name: "nfs-ganesha"