Skip to content

Uninstall - Self-hosted

To uninstall the self-hosted version of Coolify from your server, follow these steps:

  1. Stop and Remove Containers:

    Use the following command to stop the Coolify containers with a timeout of 0, ensuring they stop immediately, and then remove them:

    Terminal window
    sudo docker stop -t 0 coolify coolify-realtime coolify-db coolify-redis coolify-proxy
    sudo docker rm coolify coolify-realtime coolify-db coolify-redis coolify-proxy
  2. Remove Docker Volumes:

    Execute the command below to remove the Docker volumes associated with Coolify:

    Terminal window
    sudo docker volume rm coolify-db coolify-redis
  3. Remove Docker Network:

    Remove the custom Docker network named “coolify”:

    Terminal window
    sudo docker network rm coolify
  4. Delete Coolify Data Directory:

    Delete the directory where Coolify data is stored:

    Terminal window
    sudo rm -rf /data/coolify
  5. Remove Docker Images:

    Use the following commands to remove the Docker images used by Coolify:

    Terminal window
    sudo docker rmi ghcr.io/coollabsio/coolify:latest
    sudo docker rmi ghcr.io/coollabsio/coolify-helper:latest
    sudo docker rmi quay.io/soketi/soketi:1.6-16-alpine
    sudo docker rmi postgres:15-alpine
    sudo docker rmi redis:alpine
    sudo docker rmi traefik:v2.10 # when using the default proxy
    sudo docker rmi lucaslorentz/caddy-docker-proxy:2.8-alpine # when you have switched proxy to Caddy

After completing these steps, Coolify will be uninstalled from your server.