-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-eubucco.com.yml
More file actions
42 lines (37 loc) · 1.36 KB
/
docker-compose-eubucco.com.yml
File metadata and controls
42 lines (37 loc) · 1.36 KB
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
version: '3.8'
services:
app:
build: .
expose:
- "5000"
container_name: matching-app
volumes:
- /home/eubucco-conflation-data:/app/data
environment:
- SECRET_KEY=${SECRET_KEY}
- DATA_PATH=/app/data/
- ANNOTATION_REDUNDANCY=1
- CONSENSUS_MARGIN=2
networks:
- proxy
labels:
# Service definition
- "traefik.enable=true"
- "traefik.http.routers.matching-http.service=matching-app"
- "traefik.http.routers.matching-https.service=matching-app"
- "traefik.http.services.matching-app.loadbalancer.server.port=5000"
# Routers: HTTP to HTTPS redirect
- "traefik.http.routers.matching-http.rule=Host(`matching.eubucco.com`,`www.matching.eubucco.com`)"
- "traefik.http.routers.matching-http.entrypoints=http"
- "traefik.http.routers.matching-http.middlewares=redirect-to-https"
# Middleware: redirect HTTP to HTTPS
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
# Routers: HTTPS
- "traefik.http.routers.matching-https.rule=Host(`matching.eubucco.com`,`www.matching.eubucco.com`)"
- "traefik.http.routers.matching-https.entrypoints=https"
- "traefik.http.routers.matching-https.tls=true"
- "traefik.http.routers.matching-https.tls.certresolver=http"
restart: always
networks:
proxy:
external: true