forked from 4tikhonov/covid-19-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
156 lines (140 loc) · 4.61 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: '3'
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.2
# Enables the web UI and tells Traefik to listen to docker
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--"
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
api:
build: api/
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.${traefikhost}`)"
indra:
image: labsyspharm/indra
command: python /sw/indra/rest_api/api.py
labels:
- "traefik.enable=true"
- "traefik.http.routers.indra.rule=Host(`indra.${traefikhost}`)"
- "traefik.http.services.indra.loadbalancer.server.port=8080"
preview:
build: ./preview
labels:
- "traefik.enable=true"
- "traefik.http.routers.preview.rule=Host(`preview.${traefikhost}`)"
website:
build: website-node-docker/
labels:
- "traefik.enable=true"
- "traefik.http.routers.website.rule=Host(`${traefikhost}`)"
command: ["node_modules/serve/bin/serve.js", "./public"]
vufind:
image: unica/vufind
labels:
- "traefik.enable=true"
- "traefik.http.routers.vufind.rule=Host(`vufind.${traefikhost}`)"
- "traefik.http.services.vufind.loadbalancer.server.port=80"
grlc:
image: clariah/grlc
environment:
- "GRLC_SERVER_NAME=grlc.io"
- "GRLC_GITHUB_ACCESS_TOKEN=xxx" # Your token
- "GRLC_SPARQL_ENDPOINT=http://dbpedia.org/sparql"
- "DEBUG=true"
labels:
- "traefik.enable=true"
- "traefik.http.routers.grlc.rule=Host(`grlc.${traefikhost}`)"
graphdb:
image: ontotext/graphdb:9.1.1-se
labels:
- "traefik.enable=true"
- "traefik.http.routers.graphdb.rule=Host(`graphdb.${traefikhost}`)"
- "traefik.http.services.graphdb.loadbalancer.server.port=7200"
volumes:
- ./data/graphdb:/opt/graphdb/home/data
ocr:
image: ricktorzynski/ocr-tesseract-docker
labels:
- "traefik.enable=true"
- "traefik.http.routers.ocr.rule=Host(`ocr.${traefikhost}`)"
- "traefik.http.services.ocr.loadbalancer.server.port=5000"
es:
build: elasticsearch/
ports:
- "9201:9200"
- "9301:9300"
environment:
- "ES_JAVA_OPTS=-Xmx4024m -Xms4024m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data:/usr/share/elasticsearch/data
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./data/original:/exchange
labels:
- "traefik.enable=true"
- "traefik.http.routers.es.rule=Host(`es.${traefikhost}`)"
- "traefik.http.services.es.loadbalancer.server.port=9200"
jupyter:
image: jupyter/base-notebook
volumes:
- ./data/repo:/home/jovyan/work
environment:
- "JUPYTERHUB_1API_TOKEN=test_for_local"
user:
"root"
labels:
- "traefik.enable=true"
- "traefik.http.routers.jupyter.rule=Host(`jupyter.${traefikhost}`)"
- "traefik.http.routers.jupyter.entrypoints=web"
sparql:
image: tenforce/virtuoso:1.3.1-virtuoso7.2.2
environment:
SPARQL_UPDATE: "true"
DEFAULT_GRAPH: "http://www.example.com/my-graph"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sparql.rule=Host(`sparql.${traefikhost}`)"
- "traefik.http.routers.sparql.entrypoints=web"
- "traefik.http.services.sparql.loadbalancer.server.port=8890"
volumes:
- ./data/virtuoso:/data
kibana:
image: docker.elastic.co/kibana/kibana:7.8.0
environment:
ELASTICSEARCH_HOSTS: http://search.coronawhy.org
labels:
- "traefik.enable=true"
- "traefik.http.routers.kibana.rule=Host(`kibana.${traefikhost}`)"
- "traefik.http.services.kibana.loadbalancer.server.port=5601"
whoami:
image: "containous/whoami"
container_name: "whoami"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.entrypoints=web"
- "traefik.http.routers.whoami.rule=Host(`whoami.${traefikhost}`)"
#- "traefik.http.routers.whoami.rule=Path(`/check`)"
#- "traefik.http.middlewares.add-foo.addprefix.prefix=/check"
doccano:
image: "coronawhy/doccano"
container_name: "doccano"
labels:
- "traefik.enable=true"
- "traefik.http.routers.doccano.entrypoints=web"
- "traefik.http.routers.doccano.rule=Host(`doccano.${traefikhost}`)"