mirror of
https://gitea.zaclys.com/yannic/selfhosting.git
synced 2026-04-25 17:00:40 +02:00
add host variables
This commit is contained in:
+3
-1
@@ -1,2 +1,4 @@
|
||||
DOMAIN=localhost
|
||||
DOMAIN=localhost.localdomain
|
||||
HOST_GLANCES=glances
|
||||
HOST_PORTAINER=portainer
|
||||
TZ=Europe/Paris
|
||||
@@ -17,7 +17,7 @@ services:
|
||||
- 61208
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.glances.rule=Host(`glances.${DOMAIN}`)
|
||||
- traefik.http.routers.glances.rule=Host(`${HOST_GLANCES}.${DOMAIN}`)
|
||||
- traefik.http.routers.glances.entrypoints=web
|
||||
- traefik.http.services.glances.loadbalancer.server.port=61208
|
||||
|
||||
|
||||
@@ -15,8 +15,7 @@ services:
|
||||
- 9000
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.portainer.rule=Host(`glances.${DOMAIN}`) && PathPrefix(`/portainer`)
|
||||
- traefik.http.middlewares.test-stripprefix.stripprefix.prefixes=/portainer,/portainer/
|
||||
- traefik.http.routers.portainer.rule=Host(`${HOST_PORTAINER}.${DOMAIN}`)
|
||||
- traefik.http.routers.portainer.entrypoints=web
|
||||
- traefik.http.services.portainer.loadbalancer.server.port=9000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user