-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.test.yml
49 lines (44 loc) · 1.15 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
version: '3.9'
services:
stemmarest:
image: "dhuniwien/stemmarest:latest"
stemmarest-initializer:
build: bin
env_file:
- .env.test
depends_on:
- stemmarest
volumes:
- ./bin/init-data/stemmarest/:/init-data
entrypoint: >
/bin/bash -c "./wait-for-it.sh --host=${STEMMAREST_HOST} --port=${STEMMAREST_PORT} -- /init-data/init_test_data.sh"
stemweb:
container_name: stemweb
build: stemweb_mock
ports:
- "8000:8000"
stemmaweb:
container_name: stemmaweb
build: .
depends_on:
- stemmarest
- stemweb
env_file:
- .env.test
volumes:
- ./frontend/config/env.js.prod:/usr/src/app/stemmaweb_middleware/stemmaweb/src/js/env.js
stemmaweb-e2e:
container_name: stemmaweb-e2e
build: frontend-e2e
depends_on:
- stemmaweb
- stemmarest-initializer
env_file:
- .env.test
volumes:
- ./frontend-e2e/:/app
entrypoint: >
/bin/bash -c "sleep 120 && # Waiting for other services to be ready
npm install -g [email protected] &&
npm install &&
npm run ${CY_NPM_COMMAND}"