Skip to content

Instantly share code, notes, and snippets.

@TanX-009
Created August 21, 2026 13:23
Show Gist options
  • Select an option

  • Save TanX-009/a28966b051d96e91216ce883932ed339 to your computer and use it in GitHub Desktop.

Select an option

Save TanX-009/a28966b051d96e91216ce883932ed339 to your computer and use it in GitHub Desktop.
Redeploy Dokploy to fix stale data, deployments
  1. Remove all services
docker service rm dokploy dokploy-postgres dokploy-redis
  1. Stop and remove Trakfik container
docker stop dokploy-traefik
docker rm dokploy-traefik
  1. Dokploy reinstall
    1. Start a fresh install
    curl -sSL https://dokploy.com/install.sh | sh
    1. While the installation is in progress
      1. Get newly generated password from dokploy container
      docker exec -it $(sudo docker ps -q -f name=<current_dokploy_container_name>) sh -c 'cat /run/secrets/postgres_password'
      1. Set new generated password for the dokploy user in the postgres container
      docker exec -it <current_postgres_container_name> psql -U dokploy -d dokploy -c "ALTER USER dokploy WITH PASSWORD '<response_of_above_step>';"

Done! This should create a fresh installation of dokploy while preserving the data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment