dokploy
dokploy copied to clipboard
Dokploy traefik environment with dokploy traefik as service
To Reproduce
Modify install script using service for dokploy-traefik.
# 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 \
# -p 80:80/tcp \
# -p 443:443/tcp \
# -p 443:443/udp \
# traefik:v3.1.2
# docker network connect dokploy-network dokploy-traefik
# Optional: Use docker service create instead of docker run
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.1.2
Current vs. Expected behavior
Current Behavior when attempting to add env for traefik
Command failed: docker container inspect dokploy-traefik --format '{{json .NetworkSettings.Ports}}' Error response from daemon: No such container: dokploy-traefik
Expected behavior: dokploy-traefik reloaded with new env
Provide environment information
Operating System:
OS: Debian 12
Arch: arm64
Dokploy version: 0.24.12
VPS Provider: OVH
Which area(s) are affected? (Select all that apply)
Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
Yes
This was already fixed in 0.25.0
I have updated dokploy version to 0.25.0. It work now. Thanks