Question

Hosting more than 1 apps on Dokku server

It seems it’s possible to host more than one apps on the same Dokku server. Let"s say: app1 and app2.

How URL will look like to access each of app?


Submit an answer


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!

Sign In or Sign Up to Answer

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

After you first create the droplet with dokku installed and you go to your droplet ip address in the browser, you should see the Dokku Setup screen. You have 2 options here:

  1. Hit the checkbox to use virtualhost naming for apps. This allows dokku to make your apps available as subdomains instead of as port numbers of your droplet IP

  2. Leave the checkbox unchecked to access your apps as different port numbers of your ip

For option 1, you will need to purchase a domain name and add the digital ocean nameservers and configure your DNS records. Then you can access your apps at the subdomains (ex. app1.dokku.com, app2.dokku.com). I’m not sure how option 2 works exactly. Not sure how the port numbers are managed for your different apps.

This tutorial is where I found this info: https://maximilianschmitt.me/posts/tutorial-deploy-apps-websites-dokku/#3-completing-the-dokku-installation

Hope this helps

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.