▶️Digital Ocean with Coolify (Docker)
How to deploy your Website Project to Digital Ocean using Coolify.
In this tutorial, you will learn how to export your Webstudio Project and use Coolify to deploy it to Digital Ocean.
Coolify is a PaaS that makes it easy to deploy and manage applications on your own server, giving you control over your infrastructure without the complexity. You can self-host Coolify or use their Cloud.
Prerequisites
1. Create a GitHub repository
Create a repository where you will add the Webstudio Project code in the following steps.
Be sure to clone the repository to your local machine.
2. Export Webstudio Project
Use the CLI to export your Project and select the "Docker" option.
3. Push to GitHub
Now that the site code is local, push it to GitHub.
You do not need to install dependencies.
4. Setup Digital Ocean Droplet
Log in to your Digital Ocean account and click on "Create" > "Droplets".
Select your preferred region.
Select the Ubuntu image with version that is supported by Docker.
Note: In following steps, the automatic Docker install failed on Ubuntu versions higher than 22 during our setup. If yours fails, you can manually install Docker on the Droplet or use a different Ubuntu version and rerun the process.
Choose a plan with sufficient RAM (minimum 1GB but we recommend more for optimal performance).
Choose an authentication method (SSH keys are recommended for security).
Click "Create Droplet". Wait for your Droplet to be provisioned. Once completed, you’ll be provided an IP address; copy it.
5. Configure Coolify to use your Droplet
Create a Coolify account or log in to your existing account.
Navigate to the "Servers" section in the Coolify dashboard.
Add a new server and provide your Droplet's IP address then click “Continue”.
Click “Validate Server & Install Docker Engine“ and Coolify will install all necessary components on your server automatically. Once completed, you should see a green “Proxy Running” status.
6. Setup a Project on Coolify
Go to Projects and create a new one.
Add a Resource to the project.
Select the source of your code, likely a private repository.
Add a GitHub app and provide it access to your repository with the site.
Change the Build Pack to "Dockerfile".
Click Deploy and wait several minutes while it deploys. You can click “Show debug logs” to see more info.
If all goes well, you should see “Deployment is Finished.”
If the deployment fails, one possibility is that the server does not have enough resources.
(Optional) If you are loading images from third-party domains, add them to your environment variables with the key
DOMAINS
and a comma-separated list of the third-party domains.At the top, there is a "links" button which will take you to the live site.
7. Sync, Build, and push new changes
When you are ready to publish your latest changes again, follow these steps:
Click “Publish” in the builder (even though you aren’t publishing to the cloud, it’s necessary to generate the latest build data).
Run
webstudio sync
Run
webstudio build --template docker
Push the changes to GitHub

Now, you should have a website built on Webstudio that is hosted on Digital Ocean using Coolify, giving you full control over your infrastructure.
Last updated
Was this helpful?