-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yaml
65 lines (61 loc) · 1.12 KB
/
docker-compose.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
x-build: &x-build
build:
context: ../..
dockerfile: docker/dist/${DIST:-ubuntu}/Dockerfile
args:
USERNAME: $USER
x-common: &x-common
image: gfarm-${DIST:-ubuntu}
volumes:
- ../..:/home/$USER/gfarm:cached
- local:/home/$USER/local:cached
- ./minica/minica.pem:/minica/minica.crt
networks:
- gfarm_net
cap_add:
- SYS_ADMIN
- SYS_PTRACE
devices:
- /dev/fuse
security_opt:
- seccomp:unconfined
- apparmor:unconfined
privileged: true
services:
c1:
<<: [*x-build, *x-common]
hostname: c1
container_name: gfarm-c1
c2:
<<: *x-common
hostname: c2
container_name: gfarm-c2
c3:
<<: *x-common
hostname: c3
container_name: gfarm-c3
c4:
<<: *x-common
hostname: c4
container_name: gfarm-c4
c5:
<<: *x-common
hostname: c5
container_name: gfarm-c5
c6:
<<: *x-common
hostname: c6
container_name: gfarm-c6
c7:
<<: *x-common
hostname: c7
container_name: gfarm-c7
c8:
<<: *x-common
hostname: c8
container_name: gfarm-c8
networks:
gfarm_net:
name: gfarm_net
volumes:
local: