-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.64 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
version: "3.8"
services:
un-semun-api:
build:
context: ./un-semun-api
dockerfile: Dockerfile
ports:
- "${UN_SEMUN_API_PORT}:80"
environment:
# Make sure you set the correct UN_API env variable value in the shell
# from which you run docker-compose up.
- UN_API
- GRAPHDB_URL=neo4j
depends_on:
neo4j:
condition: service_healthy
restart: on-failure
volumes:
- un-semun-api-data:/var/lib/un-semun-api
un-semun-frontend:
build:
context: ./un-semun-front
dockerfile: Dockerfile
ports:
- "${UN_SEMUN_FRONTEND_PORT}:8080"
environment:
# Make sure you set the correct UN_API env variable value in the shell
# from which you run docker-compose up.
- UN_API
- GRAPHDB_URL=neo4j
depends_on:
- un-semun-api
restart: on-failure
un-ml-pipeline:
build:
context: ./un-ml-pipeline
dockerfile: docker/ml-pipeline.dockerfile
ports:
- "${UN_ML_PIPELINE_PORT}:80"
depends_on:
neo4j:
condition: service_healthy
restart: on-failure
volumes:
- un-ml-pipeline-data:/var/lib/un-ml-pipeline
environment:
- GRAPHDB_URL=neo4j
- UN_API
neo4j:
image: neo4j:5.10.0-community
ports:
- "${GRAPHDB_HTTP_PORT}:7474"
- "${GRAPHDB_BOLT_PORT}:7687"
volumes:
- ${GRAPHDB_DATA_PATH}:/data
environment:
- NEO4J_AUTH=none
healthcheck:
test:
["CMD-SHELL", "echo 'RETURN 1' | cypher-shell -u neo4j -p '' || exit 1"]
interval: 10s
timeout: 10s
retries: 3
volumes:
un-semun-api-data:
un-ml-pipeline-data: