-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
67 lines (61 loc) · 1.42 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
version: "3.3"
services:
server:
build:
context: .
dockerfile: ./src/server/Dockerfile
image: fast_km-server:build
command: --pw ${PASSWORD_HASH} # edit .env file to change password
ports:
- "5099:5000" # HOST_PORT:CONTAINER_PORT
depends_on:
- redis
networks:
- fast_km-network
workers:
build:
context: .
dockerfile: ./src/workers/Dockerfile
image: fast_km-worker:build
command: --workers 2 --high_priority 1 --medium_priority 0 --low_priority 0 --neo4j_address neo4j_kg:7687,neo4j_semmeddb:7687
volumes:
- ${PUBMED_DIR}:/mnt/pubmed # edit .env file to change pubmed dir
depends_on:
- redis
networks:
- fast_km-network
mongo:
image: mongo
command: --quiet --logpath /dev/null
networks:
- fast_km-network
redis:
image: redis:7.0.10
networks:
- fast_km-network
neo4j_kg:
image: neo4j:4.4.16
environment:
NEO4J_AUTH: neo4j/mypassword
volumes:
- ${NEO4J_KG_DIR}/data:/data
- ${NEO4J_KG_DIR}/logs:/logs
expose:
- 7474
- 7687
networks:
- fast_km-network
neo4j_semmeddb:
image: neo4j:4.4.16
environment:
NEO4J_AUTH: neo4j/mypassword
volumes:
- ${NEO4J_SEMMEDDB_DIR}/data:/data
- ${NEO4J_SEMMEDDB_DIR}/logs:/logs
expose:
- 7474
- 7687
networks:
- fast_km-network
networks:
fast_km-network: