-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (31 loc) · 1.03 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
version: '3'
services:
traefik:
image: "traefik:v2.8"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=shub"
- "--entrypoints.web.address=:80"
- "--entrypoints.web-secure.address=:443"
- "--entrypoints.web.http.redirections.entryPoint.to=web-secure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--providers.file.directory=/configuration/"
- "--providers.file.watch=true"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./configuration:/configuration"
labels:
- "traefik.enable=true"
- "traefik.http.services.traefik-admin.loadbalancer.server.port=8080"
- "traefik.http.routers.traefik-admin.rule=Host(`traefik.shub.localhost`)"
- "traefik.http.routers.traefik-admin.tls=true"
networks:
default:
name: shub