-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
119 lines (109 loc) · 2.39 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '2'
services:
# The main controlling webserver.
webserver:
build:
context: .
dockerfile: Dockerfile-spfy
image: backend
ports:
- "8000:80"
depends_on:
- redis
volumes:
- datastore_volume:/datastore
# networks:
# - dockernet
# The ReactJS app for the frontend.
grouch:
build:
context: .
dockerfile: Dockerfile-grouch
image: grouch
ports:
- "8090:3000"
depends_on:
- webserver
# networks:
# - dockernet
# The main set of RQ workers.
worker:
build:
context: .
dockerfile: Dockerfile-rq
image: backend-rq
ports:
- "9181:9181" #this is for debugging, drop a shell and run rq-dashboard if you need to see jobs
volumes_from:
- webserver
depends_on:
- webserver
# networks:
# - dockernet
# The small set of workers specific to phylotyper's env.
worker-phylotyper:
build:
context: .
dockerfile: Dockerfile-rq-phylotyper
image: backend-rq-phylotyper
volumes_from:
- webserver
depends_on:
- webserver
# networks:
# - dockernet
# Reserved RQ worker for creating & syncing Spfy IDs.
worker-blazegraph-ids:
build:
context: .
dockerfile: Dockerfile-rq-blazegraph
image: backend-rq-blazegraph
volumes_from:
- webserver
depends_on:
- webserver
# networks:
# - dockernet
# Extra priority workers serving the frontend.
worker-priority:
build:
context: .
dockerfile: Dockerfile-rq-priority
image: backend-rq-priority
volumes_from:
- webserver
depends_on:
- webserver
# Redis DB for the RQ workers + some frontend tasks.
redis:
image: redis:3.2
# networks:
# - dockernet
# Blazegraph DB for LTS.
blazegraph:
build:
context: ./docker-blazegraph/2.1.4-inferencing
dockerfile: Dockerfile # inherits the context from above.
image: blazegraph
ports:
- "8080:8080"
volumes:
- /var/lib/jetty/
# MongoDB for token based accounts.
mongodb:
image: mongo:3.6.1-jessie
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- mongo_volume:/data/db
# networks:
# dockernet:
# driver: bridge
# ipam:
# config:
# - subnet: 192.168.0.0/24
# gateway: 192.168.0.1
volumes:
datastore_volume:
mongo_volume: