refactor: Update HTTPS routers for local services in Swarm configuration

This commit is contained in:
2024-09-06 21:50:45 +08:00
parent c427d73c0c
commit 6435f003af
+5 -2
View File
@@ -31,11 +31,14 @@ services:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.portainer-https.rule=Host(`port.${DOMAIN?Variable not set}`) || Host(`portainer.${DOMAIN?Variable not set}`)
- traefik.http.routers.portainer-https.entrypoints=https
- traefik.http.routers.portainer-https.tls=true
- traefik.http.routers.portainer-https.rule=Host(`port.${DOMAIN?Variable not set}`) || Host(`portainer.${DOMAIN?Variable not set}`)
- traefik.http.routers.portainer-https.tls.certresolver=le
- traefik.http.routers.portainer-https.service=portainer_service
- traefik.http.routers.portainer-local-https.entrypoints=https
- traefik.http.routers.portainer-local-https.rule=Host(`port.${LOCALDOMAIN?Variable not set}`) || Host(`portainer.${LOCALDOMAIN?Variable not set}`)
- traefik.http.routers.portainer-local-https.tls=true
- traefik.http.routers.portainer-local-https.service=portainer_service
- traefik.http.services.portainer_service.loadbalancer.server.port=9000
networks: