-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.73 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
version: '2.1'
services:
pool:
image: studybits/indy-pool:0.1.2
ports:
- "9701-9708:9701-9708"
environment:
- TEST_POOL_IP=$TEST_POOL_IP
# Host networking is used, because we need to know the pool IP at build time, which is kind-of tricky
network_mode: "host"
university-agent-rug:
image: studybits/university-agent:0.3.0
command: mvn package spring-boot:run
network_mode: "host"
environment:
- TEST_POOL_IP=$TEST_POOL_IP
- NL_QUINTOR_STUDYBITS_UNIVERSITY_NAME=Rijksuniversiteit Groningen
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES:-mobile-test}
depends_on:
pool:
condition: service_started
healthcheck:
test: curl -f http://localhost:8080/swagger-ui.html || exit 1
interval: 5s
timeout: 2s
retries: 35
university-agent-gent:
image: studybits/university-agent:0.3.0
command: mvn package spring-boot:run
network_mode: "host"
environment:
- TEST_POOL_IP=$TEST_POOL_IP
- NL_QUINTOR_STUDYBITS_UNIVERSITY_NAME=Universiteit Gent
- SERVER_PORT=8081
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES:-mobile-test}
depends_on:
pool:
condition: service_started
healthcheck:
test: curl -f http://localhost:8081/swagger-ui.html || exit 1
interval: 5s
timeout: 2s
retries: 35
seeder:
image: studybits/seeder:0.3.0
network_mode: "host"
environment:
- TEST_POOL_IP=$TEST_POOL_IP
depends_on:
pool:
condition: service_started
university-agent-rug:
condition: service_healthy
university-agent-gent:
condition: service_healthy
healthcheck:
test: bash -c "[ -f /finished.txt ]"
interval: 5s
timeout: 2s
retries: 35