forked from 4tikhonov/covid-19-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-https.yml
208 lines (192 loc) · 6.47 KB
/
docker-compose-https.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
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"
- --providers.docker.network=traefik
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- --entrypoints.web.http.redirections.entryPoint.to=websecure
- --entrypoints.web.http.redirections.entryPoint.scheme=https
- --certificatesresolvers.myresolver.acme.tlschallenge=true # <== Enable TLS-ALPN-01 to generate and renew ACME certs
- --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
- --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
# 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
# volume to store let's encrypt certificates
- "./letsencrypt:/letsencrypt"
networks:
- traefik
api:
networks:
- traefik
build: api/
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.${traefikhost}`)"
- traefik.http.routers.api.tls=true
- traefik.http.routers.api.tls.certresolver=myresolver
indra:
networks:
- traefik
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"
- traefik.http.routers.indra.tls=true
- traefik.http.routers.indra.tls.certresolver=myresolver
preview:
networks:
- traefik
build: ./preview
labels:
- "traefik.enable=true"
- "traefik.http.routers.preview.rule=Host(`preview.${traefikhost}`)"
- traefik.http.routers.preview.tls=true
- traefik.http.routers.preview.tls.certresolver=myresolver
website:
networks:
- traefik
build: website-node-docker/
labels:
- "traefik.enable=true"
- "traefik.http.routers.website.rule=Host(`${traefikhost}`)"
- traefik.http.routers.website.tls=true
- traefik.http.routers.website.tls.certresolver=myresolver
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
networks:
- traefik
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}`)"
- traefik.http.routers.grlc.tls=true
- traefik.http.routers.grlc.tls.certresolver=myresolver
ocr:
image: ricktorzynski/ocr-tesseract-docker
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.ocr.rule=Host(`ocr.${traefikhost}`)"
- "traefik.http.services.ocr.loadbalancer.server.port=5000"
- traefik.http.routers.ocr.tls=true
- traefik.http.routers.ocr.tls.certresolver=myresolver
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
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.es.rule=Host(`es.${traefikhost}`)"
- "traefik.http.services.es.loadbalancer.server.port=9200"
- traefik.http.routers.es.tls=true
- traefik.http.routers.es.tls.certresolver=myresolver
jupyter:
image: jupyter/base-notebook
volumes:
- ./data/repo:/home/jovyan/work
environment:
- "JUPYTERHUB_1API_TOKEN=test_for_local"
user:
"root"
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.jupyter.rule=Host(`jupyter.${traefikhost}`)"
- "traefik.http.routers.jupyter.entrypoints=web"
- traefik.http.routers.jupyter.tls=true
- traefik.http.routers.jupyter.tls.certresolver=myresolver
sparql:
image: tenforce/virtuoso:1.3.1-virtuoso7.2.2
environment:
SPARQL_UPDATE: "true"
DEFAULT_GRAPH: "http://www.example.com/my-graph"
networks:
- traefik
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
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.kibana.rule=Host(`kibana.${traefikhost}`)"
- "traefik.http.services.kibana.loadbalancer.server.port=5601"
- traefik.http.routers.kibana.tls=true
- traefik.http.routers.kibana.tls.certresolver=myresolver
whoami:
image: "containous/whoami"
container_name: "whoami"
networks:
- traefik
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"
- traefik.http.routers.whoami.tls=true
- traefik.http.routers.whoami.tls.certresolver=myresolver
doccano:
image: "coronawhy/doccano"
container_name: "doccano"
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.doccano.entrypoints=web"
- "traefik.http.routers.doccano.rule=Host(`doccano.${traefikhost}`)"
networks:
traefik:
external: true