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!

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.

×
1 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.

Jarland

Submit an Answer