On this page
What does Dokploy give you?
Dokploy turns a VPS into a small platform similar to a hosted app service. You connect a Git repository or a Docker image, set environment variables and a domain, and it builds and runs the container, issues a certificate through Traefik and keeps a deployment history. It also offers one click database services (PostgreSQL, MySQL, MariaDB, MongoDB and Redis), Compose project support, scheduled database backups to an S3 compatible destination of your choice, a template catalogue and the ability to add more servers over SSH.
Under the hood it is plain Docker, Swarm and Traefik, so the skills from the Docker Compose guide still apply when you need to look inside.
What server should you start with?
Start on a clean Ubuntu 24.04, Ubuntu 22.04, Debian 12 or Debian 13 install with at least 2 GB of memory and 30 GB of disk. Builds are the heavy part: compiling a Node.js or Go project inside Docker can use far more memory than the finished app, so 4 GB gives a comfortable margin. Ports 80, 443 and 3000 must be free, which means no existing web server. If the server already runs other things, reinstall the image first to get a clean base. Check what is listening before you begin:
sudo ss -tlnp | grep -E ':(80|443|3000) '
free -h
df -h /How do you install Dokploy?
Run the official script as root. It installs Docker if it is missing, initialises Swarm, creates the overlay network and starts the Dokploy, PostgreSQL, Redis and Traefik services:
curl -sSL https://dokploy.com/install.sh -o dokploy-install.sh
less dokploy-install.sh
sudo sh dokploy-install.shDownloading the script first lets you read it before running it. When it finishes it prints the panel address, which is http://198.51.100.24:3000 on our example server. Confirm the services are up:
sudo docker service ls
sudo docker ps --format 'table {{.Names}}\t{{.Status}}'If Swarm cannot pick an address on its own, set the public one before running the script with export ADVERTISE_ADDR=198.51.100.24 and run it again with sudo -E.
How do you secure the dashboard?
Open port 3000 only long enough to create the admin account, then move the panel onto a domain with HTTPS. Do the first step right after the install finishes, because the first person to load the page registers as owner. Then:
- Create an A record such as
panel.example.netpointing at 198.51.100.24 (see DNS records). - In the dashboard settings for the web server, enter that domain, your email for Let's Encrypt and enable HTTPS.
- Open
https://panel.example.netand confirm the login works. - Enable two factor authentication on your profile.
Port 3000 is published by Docker, so a ufw rule alone does not hide it. Once the domain works, follow the current Dokploy documentation for removing the direct port publish, and keep the host firewall tight:
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enableHow do you deploy your first application?
Create a project, add an Application, and pick a source. Public Git URLs work directly; for private repositories connect a Git provider in settings or add a deploy key. Choose a build type: Nixpacks detects the language automatically, Dockerfile uses your own file, and Buildpacks follow the Heroku style. Then:
- Set environment variables in the Environment tab.
- Add a domain such as
app.example.netin the Domains tab, with the container port your app listens on, and enable HTTPS. - Press Deploy and watch the build log stream in the browser.
Turn on auto deploy and copy the webhook URL into your Git host so a push to the chosen branch triggers a new build. Each deployment is kept in a list, which makes going back to an earlier build quick.
How do you add databases and Compose projects?
Add a database service from the project page; Dokploy creates the container, a volume and credentials, and shows an internal connection string your app can use over the Docker network. Do not expose database ports publicly unless you need outside access, and if you do, limit the source addresses. For multi container apps, create a Compose service and paste or link a compose.yaml. Dokploy adds Traefik labels for domains you assign in the interface, so you do not need to publish ports in the file.
How do you back up and update Dokploy?
Set up a backup destination (any S3 compatible bucket you control) and schedule database backups per service. Volumes for applications that store files on disk need their own plan; the daily backups add-on captures the whole disk as a safety net. To update Dokploy itself, use the update button in the dashboard or rerun the script in update mode:
curl -sSL https://dokploy.com/install.sh | sudo sh -s update
sudo docker service lsKeep the operating system current with sudo apt update && sudo apt upgrade as usual.
What are common problems and fixes?
A failed install usually means port 80, 443 or 3000 was already in use; stop the other service and run the script again. If certificates are not issued, check that the domain resolves to the server and that ports 80 and 443 are open, then read the Traefik logs with sudo docker service logs dokploy-traefik (or sudo docker logs dokploy-traefik on setups where Traefik runs as a plain container). Builds killed without a clear error often ran out of memory; watch free -h during a build and consider a larger plan, which on our platform means deploying a new server and following the migration tutorial.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Dokploy self-hosted PaaS
Is Dokploy free to self host?
Yes, the self hosted version is open source. You only pay for the server it runs on.
Can Dokploy run on 1 GB of memory?
It may start, but builds will struggle. Plan for at least 2 GB, and 4 GB if you build applications on the same server.
Does Dokploy replace Docker Compose?
It runs Compose files for you and adds domains, certificates and history around them. You can still inspect everything with normal Docker commands.
Can I add a second server later?
Yes. Dokploy can connect to another server over SSH and deploy to it, which suits separating builds from production.
Which images work best?
A fresh Ubuntu 24.04 or Debian 12 image. Avoid the app images that already run a web server on ports 80 and 443.
More in Containers and PaaS
- Docker Compose stacks
- Docker volumes and bind mounts
- Read and limit Docker logs
- Free disk space used by Docker
- Build, tag and push Docker images
- Run and manage containers
- Podman and rootless containers
- Docker Swarm across servers
- Automatic updates with Watchtower
- Portainer CE web UI
- CapRover PaaS
- Dokku git push deploys
- Coolify on your own server