forked from GEANT/FOD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-singlefodctr-vol.yml
114 lines (106 loc) · 2.08 KB
/
docker-compose-singlefodctr-vol.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
services:
fod:
build:
context: .
dockerfile: docker-compose/Dockerfile_FOD
container_name: fodvol
privileged: true
expose:
- "8000"
ports:
- "0.0.0.0:8000:8000"
env_file:
- ./docker-compose/.env_fod_singlectr
#environment:
#- fod_volume_use=0
networks:
mgmt:
xfod:
ipv4_address: 10.197.36.2
volumes:
- ./:/opt/FOD
freertr:
build:
context: docker-compose
dockerfile: Dockerfile_FREERTR
container_name: freertr
privileged: true
expose:
- "23"
ports:
- "127.0.0.1:2323:2323"
env_file:
- ./docker-compose/.env_freertr
networks:
mgmt:
nhost1:
ipv4_address: 10.1.10.3
nhost2:
ipv4_address: 10.2.10.3
xfod:
ipv4_address: 10.197.36.3
depends_on:
- fod
volumes:
- freertr:/opt
- ./freertr/run:/rtr/run/
host1:
build:
context: docker-compose
dockerfile: Dockerfile_HOST1
container_name: host1
privileged: true
env_file:
- ./docker-compose/.env_host1
networks:
mgmt:
nhost1:
ipv4_address: 10.1.10.11
depends_on:
- fod
#volumes:
# - freertr:/opt
host2:
build:
context: docker-compose
dockerfile: Dockerfile_HOST2
container_name: host2
privileged: true
env_file:
- ./docker-compose/.env_host2
networks:
mgmt:
nhost2:
ipv4_address: 10.2.10.12
depends_on:
- fod
#volumes:
# - freertr:/opt
networks:
mgmt:
driver: bridge
ipam:
driver: default
config:
- subnet: 11.11.11.0/24
xfod:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.197.36.0/28
nhost1:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.1.10.0/24
nhost2:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.2.10.0/24
volumes:
freertr: