-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.e2e-tests.yml
67 lines (62 loc) · 1.53 KB
/
docker-compose.e2e-tests.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
# Use the default network olog_default.
version: "3.7"
services:
fe-olog-e2e-tests:
build: ./e2e
depends_on:
- fe-olog
environment:
CYPRESS_baseUrl: http://localhost:3000
TEST_BE_URL: http://localhost:8080/Olog
# IMPORTANT: run as if from outside the docker network
# so that the service url is accessible the same way
# as it would be locally on the host
network_mode: "host"
working_dir: /e2e
volumes:
- ./e2e/cypress/screenshots:/e2e/cypress/screenshots
- ./e2e/cypress/videos:/e2e/cypress/videos
entrypoint: >
/bin/bash -c "
while ! curl -s -f http://localhost:3000;
do
echo Waiting for Frontend;
sleep 1;
done;
cypress run;
"
fe-olog:
build: .
ports:
- "3000:3000"
depends_on:
- fe-olog-service
environment:
VITE_APP_BASE_URL: http://localhost:8080/Olog
command: >
/bin/bash -c "
while ! curl -s -f fe-olog-service:8080/Olog;
do
echo Waiting for Olog Service;
sleep 1;
done;
npm start;
"
fe-olog-service:
extends:
file: docker-compose.yml
service: fe-olog-service
fe-olog-mongo:
extends:
file: docker-compose.yml
service: fe-olog-mongo
fe-olog-elastic:
extends:
file: docker-compose.yml
service: fe-olog-elastic
# Configure persistent storage for mongo and elastic.
volumes:
fe-olog-elastic-data:
driver: local
fe-olog-mongo-data:
driver: local