-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
78 lines (78 loc) · 2.29 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
77
78
version: '3'
services:
ols4-dataload:
environment:
- JAVA_OPTS=${JAVA_OPTS}
build:
context: .
dockerfile: ./dataload/Dockerfile
volumes:
- ols4-solr-data:/opt/solr/server/solr:rw
- ols4-neo4j-data:/opt/neo4j/data:rw
- ./${OLS4_CONFIG:?OLS4 dataload requires a config file}:/mnt/config.json:ro
- ./testcases:/opt/ols/dataload/testcases:ro
#- ./docker_out:/tmp/out:rw
command: ./dataload.dockersh ${OLS4_DATALOAD_ARGS:-}
ols4-solr:
image: solr:9.0.0
environment:
- SOLR_HOME=/mnt/ols4-solr-data
ports:
- 8983:8983
volumes:
- ols4-solr-data:/mnt/ols4-solr-data
command: ["-f"]
depends_on:
ols4-dataload:
condition: service_completed_successfully
ols4-neo4j:
image: neo4j:4.4.9-community
ports:
- 7474:7474
- 7687:7687
volumes:
- ols4-neo4j-data:/var/lib/neo4j/data
environment:
- NEO4J_AUTH=none
depends_on:
ols4-dataload:
condition: service_completed_successfully
ols4-backend:
build:
context: .
dockerfile: ./backend/Dockerfile
ports:
- 8080:8080
environment:
- OLS_SOLR_HOST=http://ols4-solr:8983
- OLS_NEO4J_HOST=bolt://ols4-neo4j:7687
depends_on:
- ols4-solr
- ols4-neo4j
links:
- ols4-solr
- ols4-neo4j
ols4-frontend:
build:
context: ./frontend
env_file: ./frontend/.env
ports:
- 8081:8080
depends_on:
- ols4-backend
links:
- ols4-backend
run-api-tests:
profiles: ["run-api-tests"]
build: ./apitester4
volumes:
- ${OLS4_APITEST_OUTDIR:-./to_be_filled_by_script_outdir}:/mnt/out:rw
- ${OLS4_APITEST_COMPAREDIR:-./to_be_filled_by_script_comparedir}:/mnt/compare:rw
command: ["bash", "-c", "chown -R apitester:apitester /mnt && su -c \"java -jar /opt/apitester/target/apitester-1.0-SNAPSHOT-jar-with-dependencies.jar --url http://ols4-backend:8080 --outDir /mnt/out --compareDir /mnt/compare --deep > /mnt/out/apitester4.log\" apitester"]
depends_on:
- ols4-backend
links:
- ols4-backend
volumes:
ols4-neo4j-data:
ols4-solr-data: