-
Notifications
You must be signed in to change notification settings - Fork 13
/
override.example.yml
24 lines (22 loc) · 959 Bytes
/
override.example.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
version: '3.7'
services:
traefik:
container_name: traefik # Remove if using multiple instances
networks:
- proxy # Change if you're using another network
labels:
# Traefik configuration for the dashboard
# Remove the labels section if the dashboard is disabled
- traefik.http.routers.traefik-http.rule=Host(`traefik.example.com`)
- traefik.http.routers.traefik-http.entrypoints=http
- traefik.http.routers.traefik-http.middlewares=redirect
- traefik.http.routers.traefik-https.rule=Host(`traefik.example.com`)
- traefik.http.routers.traefik-https.entrypoints=https
- traefik.http.routers.traefik-https.tls=true
- traefik.http.routers.traefik-http.service=api@internal
- traefik.http.routers.traefik-https.service=api@internal
- traefik.http.middlewares.redirect.redirectscheme.scheme=https
networks:
# Change if you're using another network
proxy:
external: true