-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.test.yml
209 lines (193 loc) · 4.87 KB
/
docker-compose.test.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
version: '3.9'
services:
niffler-all-db:
container_name: niffler-all-db
image: postgres:15.1
environment:
- POSTGRES_MULTIPLE_DATABASES="niffler-auth","niffler-currency","niffler-spend","niffler-userdata"
- PGUSER=postgres
- POSTGRES_PASSWORD=secret
volumes:
- ./postgres:/docker-entrypoint-initdb.d
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres", "-d", "postgres" ]
interval: 3s
timeout: 3s
retries: 5
expose:
- "5432"
networks:
- test-network
dns_search: .
zookeeper:
container_name: zookeeper
image: confluentinc/cp-zookeeper:7.3.2
expose:
- "2181"
environment:
- ZOOKEEPER_CLIENT_PORT=2181
networks:
- test-network
dns_search: .
kafka:
container_name: kafka
image: confluentinc/cp-kafka:7.3.2
expose:
- "9092"
depends_on:
zookeeper:
condition: service_started
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=1
- KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1
networks:
- test-network
dns_search: .
auth.niffler.dc:
container_name: auth.niffler.dc
image: ${PREFIX}/niffler-auth-${PROFILE}:latest
expose:
- "9000"
healthcheck:
test: "wget --spider http://localhost:9000/actuator/health || exit 1"
interval: 5s
timeout: 5s
retries: 10
depends_on:
niffler-all-db:
condition: service_healthy
kafka:
condition: service_started
networks:
- test-network
dns_search: .
currency.niffler.dc:
container_name: currency.niffler.dc
image: ${PREFIX}/niffler-currency-${PROFILE}:latest
expose:
- "8091"
- "8092"
depends_on:
niffler-all-db:
condition: service_healthy
networks:
- test-network
dns_search: .
gateway.niffler.dc:
container_name: gateway.niffler.dc
image: ${PREFIX}/niffler-gateway-${PROFILE}:latest
expose:
- "8090"
depends_on:
auth.niffler.dc:
condition: service_healthy
networks:
- test-network
dns_search: .
spend.niffler.dc:
container_name: spend.niffler.dc
image: ${PREFIX}/niffler-spend-${PROFILE}:latest
expose:
- "8093"
depends_on:
niffler-all-db:
condition: service_healthy
networks:
- test-network
dns_search: .
userdata.niffler.dc:
container_name: userdata.niffler.dc
image: ${PREFIX}/niffler-userdata-${PROFILE}:latest
expose:
- "8089"
depends_on:
auth.niffler.dc:
condition: service_healthy
networks:
- test-network
dns_search: .
frontend.niffler.dc:
container_name: frontend.niffler.dc
image: "${FRONT_IMAGE}"
expose:
- "80"
depends_on:
gateway.niffler.dc:
condition: service_started
networks:
- test-network
dns_search: .
selenoid:
container_name: selenoid
image: aerokube/selenoid:1.11.2
platform: "${ARCH}"
volumes:
- ./selenoid:/etc/selenoid
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
command: [ "-conf", "/etc/selenoid/browsers.json", "-limit", "3", "-video-output-dir", "/opt/selenoid/video", "-log-output-dir", "/opt/selenoid/logs", "-container-network", "niffler_test-network" ]
ports:
- "4444:4444"
networks:
- test-network
dns_search: .
selenoid-ui:
container_name: selenoid-ui
image: aerokube/selenoid-ui:1.10.11
depends_on:
- selenoid
restart: unless-stopped
ports:
- "9091:8080"
command: [ "--selenoid-uri", "http://selenoid:4444" ]
networks:
- test-network
dns_search: .
niffler-e-2-e:
container_name: niffler-e-2-e
image: ${PREFIX}/niffler-e-2-e-tests:latest
environment:
- ALLURE_DOCKER_API=${ALLURE_DOCKER_API}
- GITHUB_TOKEN=${GITHUB_TOKEN}
depends_on:
frontend.niffler.dc:
condition: service_started
volumes:
- allure-artifacts:/niffler/niffler-e-2-e-tests/build/allure-results/
networks:
- test-network
dns_search: .
allure:
container_name: allure
image: frankescobar/allure-docker-service:2.21.0
depends_on:
- niffler-e-2-e
environment:
CHECK_RESULTS_EVERY_SECONDS: 3
KEEP_HISTORY: 1
ports:
- "5050:5050"
networks:
- test-network
dns_search: .
allure-ui:
container_name: allure-ui
image: frankescobar/allure-docker-service-ui:7.0.3
depends_on:
- allure
environment:
ALLURE_DOCKER_PUBLIC_API_URL: "http://localhost:5050"
ports:
- "5252:5252"
networks:
- test-network
dns_search: .
volumes:
allure-artifacts:
networks:
test-network:
driver: bridge