generated from EPFL-ENAC/enac-it4r-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
30 lines (30 loc) · 1.02 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
services:
reverse-proxy:
image: traefik:v2.9
command:
- "--providers.docker"
- "--providers.file.directory=/configuration/"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--entrypoints.websecure.address=:443"
environment:
- SSL_CERT_CRT=${SSL_CERT_CRT}
- SSL_CERT_KEY=${SSL_CERT_KEY}
ports:
- "80:80"
- "443:443"
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yaml:/configuration/traefik.yml
- /etc/ssl:/etc/ssl
frontend:
build: ./webmap
labels:
- "traefik.http.routers.frontend.tls=true"
- "traefik.http.routers.frontend.rule=PathPrefix(`/`)"
- "traefik.http.routers.frontend.middlewares=frontend"
- "traefik.http.middlewares.frontend.compress=true"
restart: unless-stopped