Report this

What is the reason for this report?

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

Posted on November 26, 2018

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 http://api.mydomain.com, and have the Vue.js front-end hosted in a second Dokku droplet accessible from http://www.mydomain.com. Is this setup possible in Digital Ocean/Dokku? Please provide any articles that may be of help. Thanks!



This textbox defaults to using Markdown to format your 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.
0

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.

Jarland

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.