Merge pull request #85 from nenas1ya/patch-1

docs(troubleshooting): correct instructions for recreate Traefik swarm service
This commit is contained in:
Mauricio Siu
2025-11-30 00:15:59 -06:00
committed by GitHub

View File

@@ -484,16 +484,17 @@ docker network connect dokploy-network dokploy-traefik
docker service rm dokploy-traefik
# Create a new dokploy-traefik service
docker run -d \
--name dokploy-traefik \
--restart always \
-v /etc/dokploy/traefik/traefik.yml:/etc/traefik/traefik.yml \
-v /etc/dokploy/traefik/dynamic:/etc/dokploy/traefik/dynamic \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-p 80:80/tcp \
-p 443:443/tcp \
-p 443:443/udp \
traefik:v3.6.1
docker service create \
--name dokploy-traefik \
--constraint 'node.role==manager' \
--network dokploy-network \
--mount type=bind,source=/etc/dokploy/traefik/traefik.yml,target=/etc/traefik/traefik.yml \
--mount type=bind,source=/etc/dokploy/traefik/dynamic,target=/etc/dokploy/traefik/dynamic \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--publish mode=host,published=443,target=443 \
--publish mode=host,published=80,target=80 \
--publish mode=host,published=443,target=443,protocol=udp \
traefik:v3.6.1
```
Remove the dokploy service: