mirror of
https://gitea.zaclys.com/yannic/selfhosting.git
synced 2026-04-25 17:00:40 +02:00
wildcard #2
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
DOMAIN=localhost.localdomain
|
||||
HOST_TRAEFIK=traefik
|
||||
HOST_GLANCES=glances
|
||||
HOST_PORTAINER=portainer
|
||||
HOST_MAIL=mail
|
||||
|
||||
@@ -15,7 +15,11 @@ services:
|
||||
- --certificatesresolvers.letsencrypt.acme.tlschallenge=true
|
||||
labels:
|
||||
- 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
|
||||
- traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
|
||||
- traefik.http.routers.http-catchall.entrypoints=web
|
||||
@@ -31,7 +35,8 @@ services:
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 8080:8080
|
||||
expose:
|
||||
- 8080
|
||||
networks:
|
||||
- srv
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user