forked from Quintor/StudyBits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (75 loc) · 2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
build:
context: university-agent
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:
build:
context: university-agent
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
build:
context: seeder
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
tests:
build:
context: university-agent
environment:
- TEST_POOL_IP=$TEST_POOL_IP
network_mode: "host"
command: mvn verify
depends_on:
seeder:
condition: service_healthy