-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
89 lines (88 loc) · 1.87 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3'
services:
master:
image: braindrill:latest
build:
context: .
dockerfile: Dockerfile
container_name: 'master'
tty: true
stdin_open: true
ports:
- '1600:1600'
- '8080:8080'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- engine:/data
working_dir: /app
environment:
CLUSTER_IP: 'master'
CLUSTER_PORT: '1600'
CLUSTER_ROLE: 'master'
SEED_IP: 'master'
worker-1:
image: braindrill:latest
build:
context: .
dockerfile: Dockerfile
tty: true
stdin_open: true
ports:
- '17350:17350'
security_opt:
- 'seccomp=unconfined'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- engine:/data
working_dir: /app
environment:
CLUSTER_IP: 'worker-1'
CLUSTER_PORT: '17350'
CLUSTER_ROLE: 'worker'
SEED_IP: 'master'
SEED_PORT: '1600'
worker-2:
image: braindrill:latest
build:
context: .
dockerfile: Dockerfile
tty: true
stdin_open: true
ports:
- '17351:17351'
security_opt:
- 'seccomp=unconfined'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- engine:/data
working_dir: /app
environment:
CLUSTER_IP: 'worker-2'
CLUSTER_PORT: '17351'
CLUSTER_ROLE: 'worker'
SEED_IP: 'master'
SEED_PORT: '1600'
worker-3:
image: braindrill:latest
build:
context: .
dockerfile: Dockerfile
tty: true
stdin_open: true
ports:
- '17352:17352'
security_opt:
- 'seccomp=unconfined'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- engine:/data
working_dir: /app
environment:
CLUSTER_IP: 'worker-3'
CLUSTER_PORT: '17352'
CLUSTER_ROLE: 'worker'
SEED_IP: 'master'
SEED_PORT: '1600'
volumes:
engine:
external: true