Uninstall - Self-hosted
To uninstall the self-hosted version of Coolify from your server, follow these steps:
-
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-proxysudo docker rm coolify coolify-realtime coolify-db coolify-redis coolify-proxy -
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 -
Remove Docker Network:
Remove the custom Docker network named “coolify”:
Terminal window sudo docker network rm coolify -
Delete Coolify Data Directory:
Delete the directory where Coolify data is stored:
Terminal window sudo rm -rf /data/coolify -
Remove Docker Images:
Use the following commands to remove the Docker images used by Coolify:
Terminal window sudo docker rmi ghcr.io/coollabsio/coolify:latestsudo docker rmi ghcr.io/coollabsio/coolify-helper:latestsudo docker rmi quay.io/soketi/soketi:1.6-16-alpinesudo docker rmi postgres:15-alpinesudo docker rmi redis:alpinesudo docker rmi traefik:v3.1 # when using the default proxysudo 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.