Deploy Docker to DigitalOcean
Run your Docker app on a DigitalOcean server in your own account, with any database, HTTPS and zero-downtime releases. DigitalOcean bills you for the server directly, and Railyard adds no markup.
Steps
- 1
Create a DigitalOcean API token
In the DigitalOcean control panel, open API and generate a personal access token with read and write access. Paste it into Railyard and tick Save it to the team, so it's reused for every server after this one.
- 2
Add a DigitalOcean server
In Railyard, open Servers, then Add a server, then Create on your cloud, and pick DigitalOcean, a region and a size. Railyard preselects s-1vcpu-2gb (1 vCPU, 2 GB of memory). It creates the server in your DigitalOcean account and finishes setup in about two minutes.
- 3
Deploy your Docker repository
Paste the GitHub link. Railyard reads the repository, detects Docker and fills in the build, the port, the release command, workers and any database.
- 4
Go live on HTTPS
Railyard builds your app, runs the release command, health-checks the new version and moves traffic only when it answers. Add your domain and the certificate is issued and renewed for you.
What Railyard sets up for Docker
- Your Dockerfile is built as it is.
- Build arguments and BuildKit secrets are passed without being baked into a layer.
- Private repositories and submodules clone with short-lived GitHub App tokens.
- Add Postgres, MySQL, Redis or object storage and the connection strings are injected.
- A release command, such as a migration, runs before the new version takes traffic.
DigitalOcean regions
Frankfurt and Amsterdam keep your data in the EU.
- New York
- San Francisco
- Amsterdam
- Frankfurt
- London
- Toronto
- Singapore
- Bangalore
- Sydney
Questions
Which DigitalOcean server size should I start with?
Where does my Docker app's data live?
What does it cost to run Docker on DigitalOcean?
Docker on other clouds
Deploy Docker to your own DigitalOcean server.
14-day trial on every plan. Your provider bills you for servers at its own price.
14-day trial on every plan. One flat price per team, your servers at your provider's price.