♻️ update Traefik configuration for Portainer service and remove exposed ports

This commit is contained in:
2025-10-27 11:01:44 +00:00
parent f6dcf8f65f
commit 69e06b8b6c

View File

@@ -2,8 +2,6 @@ services:
portainer:
image: portainer/portainer-ce:latest
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- 9000:9000
volumes:
- /home/doc/swarm-data/appdata/portainer:/data
networks:
@@ -15,7 +13,7 @@ services:
constraints:
- node.hostname == p0
labels:
- "traefik.enable=false"
- "traefik.enable=true"
- "traefik.swarm.network=homelab"
- "traefik.http.routers.portainer.rule=Host(`portainer.frostlabs.me`)"
- "traefik.http.routers.portainer.entrypoints=websecure"