mirror of
https://gitea.zaclys.com/yannic/selfhosting.git
synced 2026-05-01 11:40:42 +02:00
path prefix portainer
This commit is contained in:
@@ -3,6 +3,8 @@ GANDIV5_API_KEY=xxxxxxxxxxxxxxxxx
|
|||||||
LETSENCRYPT_EMAIL=root@localhost.localdomain
|
LETSENCRYPT_EMAIL=root@localhost.localdomain
|
||||||
# sites
|
# sites
|
||||||
DOMAIN=localhost.localdomain
|
DOMAIN=localhost.localdomain
|
||||||
|
HOST_WWW=www
|
||||||
|
PATH_PORTAINER=/console
|
||||||
HOST_TRAEFIK=traefik
|
HOST_TRAEFIK=traefik
|
||||||
HOST_GLANCES=glances
|
HOST_GLANCES=glances
|
||||||
HOST_PORTAINER=portainer
|
HOST_PORTAINER=portainer
|
||||||
|
|||||||
@@ -15,10 +15,14 @@ services:
|
|||||||
- 9000
|
- 9000
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.portainer.rule=Host(`${HOST_PORTAINER}.${DOMAIN}`)
|
- traefik.http.routers.portainer.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_PORTAINER}`)"
|
||||||
- traefik.http.routers.portainer.entrypoints=websecure
|
- traefik.http.routers.portainer.entrypoints=websecure
|
||||||
- traefik.http.routers.portainer.tls=true
|
- traefik.http.routers.portainer.tls=true
|
||||||
- traefik.http.services.portainer.loadbalancer.server.port=9000
|
- traefik.http.services.portainer.loadbalancer.server.port=9000
|
||||||
|
- traefik.http.routers.portainer.middlewares=portainerRedir,portainerPStrip
|
||||||
|
- traefik.http.middlewares.portainerPStrip.stripprefix.prefixes=${PATH_PORTAINER}
|
||||||
|
- traefik.http.middlewares.portainerRedir.redirectregex.regex=^(.*)${PATH_PORTAINER}$$
|
||||||
|
- traefik.http.middlewares.portainerRedir.redirectregex.replacement=$${1}${PATH_PORTAINER}/
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
portainer_data:
|
portainer_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user