-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.build.yaml
69 lines (69 loc) · 1.59 KB
/
docker-compose.build.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
version: '3'
services:
controller:
container_name: controller
hostname: controller
build:
context: .
dockerfile: controller/Dockerfile
privileged: true
tty: true
cgroup: host
volumes:
- '/lib/modules:/lib/modules'
- '/sys/fs/cgroup:/sys/fs/cgroup:rw'
sysctls:
net.ipv6.conf.all.disable_ipv6: 0
net.ipv6.conf.default.disable_ipv6: 0
environment:
- HOST_IP=172.28.0.2
networks:
management_network:
ipv4_address: 172.28.0.2
compute-1:
container_name: compute-1
hostname: compute-1
build:
context: .
dockerfile: compute/Dockerfile
privileged: true
tty: true
cgroup: host
volumes:
- '/lib/modules:/lib/modules'
- '/sys/fs/cgroup:/sys/fs/cgroup:rw'
sysctls:
net.ipv6.conf.all.disable_ipv6: 0
net.ipv6.conf.default.disable_ipv6: 0
environment:
- HOST_IP=172.28.0.3
networks:
management_network:
ipv4_address: 172.28.0.3
compute-2:
container_name: compute-2
hostname: compute-2
build:
context: .
dockerfile: compute/Dockerfile
privileged: true
tty: true
cgroup: host
volumes:
- '/lib/modules:/lib/modules'
- '/sys/fs/cgroup:/sys/fs/cgroup:rw'
sysctls:
net.ipv6.conf.all.disable_ipv6: 0
net.ipv6.conf.default.disable_ipv6: 0
environment:
- HOST_IP=172.28.0.4
networks:
management_network:
ipv4_address: 172.28.0.4
networks:
management_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/24