-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-hub.yml
182 lines (182 loc) · 3.94 KB
/
docker-compose-hub.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
182
version: '2.8'
networks:
uems-dev: null
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- uems-dev
expose:
- '27017'
healthcheck:
test: 'echo ''db.runCommand("ping").ok'' | mongo mongo:27017/test --quiet'
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
mongo-express:
image: mongo-express
restart: always
networks:
- uems-dev
ports:
- '8081:8081'
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
mongo-seeding:
build: ./docker-setup/mongo-seeding
depends_on:
- mongo
networks:
- uems-dev
rabbit-uems:
build: ./docker-setup/rabbit-mq-docker
expose:
- '5672'
- '15672'
ports:
- '5672:5672'
- '15672:15672'
networks:
- uems-dev
healthcheck:
test:
- CMD
- /bin/sh
- '-c'
- rabbitmq-diagnostics -q ping
interval: 30s
timeout: 10s
retries: 5
micro-dionysus:
build: ./uems-event-micro-dionysus
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
healthcheck:
test:
- CMD
- wget
- 'http://localhost:15550'
interval: 30s
timeout: 10s
retries: 5
gateway:
build:
context: ./
dockerfile: ./docker-setup/composite-gateway.Dockerfile
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
healthcheck:
test:
- CMD
- wget
- 'http://localhost:15450/status'
interval: 30s
timeout: 10s
retries: 5
expose:
- '15450'
links:
- 'keycloak:uems.local.host'
equipment-hephaestus:
build: ./uems-equipment-hephaestus
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
files-hermes:
build: ./uems-files-hermes
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
expose:
- '1432'
state-athena:
build: ./uems-state-athena
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
venues-tartarus:
build: ./uems-venues-tartarus
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
user-hera:
build: ./uems-user-hera
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
mongo:
condition: service_healthy
keycloak:
image: 'quay.io/keycloak/keycloak:12.0.1'
networks:
- uems-dev
volumes:
- './docker-setup/keycloak/realm-export-uems-debug.json:/tmp/realm.json'
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_IMPORT=/tmp/realm.json
ports:
- 8080
haproxy:
networks:
- uems-dev
depends_on:
rabbit-uems:
condition: service_healthy
venues-tartarus:
condition: service_started
state-athena:
condition: service_started
files-hermes:
condition: service_started
equipment-hephaestus:
condition: service_started
user-hera:
condition: service_started
gateway:
condition: service_started
micro-dionysus:
condition: service_started
keycloak:
condition: service_started
image: eeacms/haproxy
volumes:
- './docker-setup/haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg'
ports:
- '8999:8999'
- '8080:8080'