-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
181 lines (164 loc) · 4.06 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
172
173
174
175
176
177
178
179
180
181
version: "3.4"
services:
influxdb:
image: influxdb
volumes:
- influxdb_data:/var/lib/influxdb
networks:
- iot
mongodb:
image: mongo
networks:
- iot
redis:
image: redis
networks:
- iot
rabbitmq:
image: rabbitmq:management
networks:
- iot
mqtt:
build:
context: mqtt
dockerfile: Dockerfile
ports:
- "1883:1883"
- "15672:15672"
environment:
- "RABBITMQ_DEFAULT_USER=<CHANGEIT_USER>"
- "RABBITMQ_DEFAULT_PASS=<CHANGEIT_PASS>"
networks:
- iot
postgres-keycloak-service:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
networks:
- iot
keycloak-service:
build:
context: keycloak
dockerfile: Dockerfile
environment:
- DB_VENDOR=POSTGRES
- DB_ADDR=postgres-keycloak-service
- DB_DATABASE=keycloak
- DB_USER=keycloak
- DB_SCHEMA=public
- DB_PASSWORD=password
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- PROXY_ADDRESS_FORWARDING=true
networks:
- iot
nginx-service:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
networks:
- iot
edge-service:
build:
context: ../iot-edge
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=mongodb:27017 rabbitmq:5672 mqtt:5672
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
tsp-service:
build:
context: ../iot-tsp
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=influxdb:8086 rabbitmq:5672
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
stream-service:
build:
context: ../iot-reactive
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=rabbitmq:5672
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
tsa-service:
build:
context: ../iot-tsa
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=influxdb:8086
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
asset-service:
build:
context: ../iot-asset
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=mongodb:27017
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
rule-service:
build:
context: ../iot-rule
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=mongodb:27017 redis:6379
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
gtw-service:
build:
context: ../iot-gtw
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
UTIL_DIR: src/main/docker/
HTTP_PROXY: ${http_proxy}
environment:
- WAIT_FOR_IT=keycloak-service:8080 nginx-service:80
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- iot
networks:
iot:
volumes:
postgres_data:
driver: local
influxdb_data:
driver: local