wildcard #2
This commit is contained in:
parent
3485aea5ef
commit
fa2983199d
2 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
DOMAIN=localhost.localdomain
|
DOMAIN=localhost.localdomain
|
||||||
|
HOST_TRAEFIK=traefik
|
||||||
HOST_GLANCES=glances
|
HOST_GLANCES=glances
|
||||||
HOST_PORTAINER=portainer
|
HOST_PORTAINER=portainer
|
||||||
HOST_MAIL=mail
|
HOST_MAIL=mail
|
||||||
|
|
|
@ -15,7 +15,11 @@ services:
|
||||||
- --certificatesresolvers.letsencrypt.acme.tlschallenge=true
|
- --certificatesresolvers.letsencrypt.acme.tlschallenge=true
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.services.traefik.loadbalancer.server.port=80
|
- traefik.http.routers.dashboard.rule=Host(`${HOST_TRAEFIK}.${DOMAIN}`)
|
||||||
|
- traefik.http.routers.dashboard.entrypoints=websecure
|
||||||
|
- traefik.http.routers.dashboard.tls=true
|
||||||
|
- traefik.http.routers.dashboard.tls.certresolver=letsencrypt
|
||||||
|
- traefik.http.services.dashboard.loadbalancer.server.port=8080
|
||||||
# global redirect to https
|
# global redirect to https
|
||||||
- traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
|
- traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
|
||||||
- traefik.http.routers.http-catchall.entrypoints=web
|
- traefik.http.routers.http-catchall.entrypoints=web
|
||||||
|
@ -31,7 +35,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
- 8080:8080
|
expose:
|
||||||
|
- 8080
|
||||||
networks:
|
networks:
|
||||||
- srv
|
- srv
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Add table
Reference in a new issue