How can I run 2 Dokku-based Droplets using the same Domain?

I am building an application that uses a Rails API with a Vue.js front-end. I’d like to have the Rails API hosted in one Dokku droplet and accessible from, and have the Vue.js front-end hosted in a second Dokku droplet accessible from Is this setup possible in Digital Ocean/Dokku? Please provide any articles that may be of help. Thanks!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hey friend,

This should definitely be possible. You should be able to set in your DNS for the root domain and/or the www subdomain to go to the IP of one droplet, and the API subdomain to go to the other.