-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
171 lines (161 loc) · 3.69 KB
/
docker-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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: '2'
services:
mysql-db:
restart: always
image: mysql:5.7
hostname: mysql-db
container_name: db-mysql
command: --default-authentication-plugin=mysql_native_password
expose:
- "3306"
ports:
- "3306:3306"
networks:
idm_network:
ipv4_address: 172.18.1.5
environment:
# Development use only
# Use Docker Secrets for Sensitive Data
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_ROOT_HOST=172.18.1.6
volumes:
- vol-mysql:/var/lib/mysql
fiware-idm:
image: fiware/idm:7.8.0
container_name: fiware-idm
ports:
- "3000:3000"
- "443:443"
networks:
idm_network:
ipv4_address: 172.18.1.6
stdin_open: true
tty: true
environment:
- DEBUG=idm:*
- IDM_DB_HOST=mysql-db
- IDM_HOST=http://localhost:3000
- IDM_PORT=3000
- IDM_PTP_HOST=172.18.1.14
- IDM_PTP_PORT=8092
- IDM_USAGE_CONTROL_ENABLED=true
- IDM_DB_PASS=secret
- IDM_DB_USER=root
- IDM_ADMIN_USER=admin
- IDM_ADMIN_PASS=1234
volumes:
- ./docker-entrypoint.sh:/opt/fiware-idm/docker-entrypoint.sh
- ./package.json:/opt/fiware-idm/package.json
cep-master:
image: ging/flink-cep-master:1.7.2-hadoop2.8
hostname: cep-master
container_name: cep-master
expose:
- "6123"
ports:
- "8081:8081"
environment:
- FLINK_PORT=8081
- INIT_DAEMON_STEP=setup_flink
networks:
idm_network:
ipv4_address: 172.18.1.7
cep-worker:
image: ging/flink-cep-worker:1.7.2-hadoop2.8
hostname: cep-worker
container_name: cep-worker
expose:
- "6121"
- "6122"
ports:
- "9200:9200"
depends_on:
- cep-master
links:
- "cep-master:cep-master"
environment:
- FLINK_MASTER_PORT_6123_TCP_ADDR=cep-master
networks:
idm_network:
ipv4_address: 172.18.1.8
mongo:
image: mongo:3.4
container_name: mongo
command: --nojournal
networks:
idm_network:
ipv4_address: 172.18.1.9
orion:
image: fiware/orion:2.5.1
container_name: orion
links:
- mongo
ports:
- "1026:1026"
command: -dbhost mongo
depends_on:
- mongo
networks:
idm_network:
ipv4_address: 172.18.1.10
pep-ptp:
image: ging/pep-ptp
hostname: pep-ptp
container_name: pep-ptp
ports:
- "24225:24225"
environment:
- PEP_PROXY_PORT=24225
- PEP_PROXY_IDM_HOST=172.18.1.6
- PEP_PROXY_IDM_PORT=3000
- PEP_PROXY_APP_HOST=172.18.1.8
- PEP_PROXY_APP_PORT=9200
- PEP_PROXY_APP_ID=fcf2ac8a-6ce9-4693-9fee-33bd790e1bf2
- PEP_PROXY_USERNAME=pep_proxy_c3fc3752-c35f-4fd5-83f4-ffddac38ad79
- PEP_PASSWORD=pep_proxy_e352a87a-057e-4d32-90fb-b4924053e877
depends_on:
- fiware-idm
networks:
idm_network:
ipv4_address: 172.18.1.11
ptp:
image: ging/ptp:1.0.0
hostname: ptp
container_name: ptp
expose:
- "8092"
ports:
- "8092:8092"
depends_on:
- cep-master
environment:
- FLINK_ENDPOINT=172.18.1.7:8081
- IDM_ENDPOINT=172.18.1.6:3000
networks:
idm_network:
ipv4_address: 172.18.1.14
control-panel:
image: ging/control-panel
hostname: control-panel
container_name: control-panel
expose:
- "3001"
ports:
- "3001:3001"
depends_on:
- cep-master
networks:
idm_network:
ipv4_address: 172.18.1.15
networks:
idm_network:
driver: bridge
name: idm_network
ipam:
config:
- subnet: 172.18.1.0/24
gateway: 172.18.1.1
volumes:
vol-mysql:
vol-mongo: