Report this

What is the reason for this report?

2 apps (Docker containers), 2 subdomains, 1 IP address, 1 droplet. What steps to enable web access for both? Can only reach 1 app.

Posted on February 16, 2020

1 Ubuntu 18.04 droplet running Docker. 2 apps, each assigned to a subdomain, 1 IP address. Both Docker containers are up and running (Bitwarden and Wireguard/Subspace). Only 1 accessible via web. Both subdomains resolve to the same app.

Do I need to setup virtual server hosts? Assign a separate domain (with separate IP)? Not sure what steps to take from here.

If someone could suggest a path forward I’d be most grateful.



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.

Hi there @clutchcargo,

I recently answered a similar question. You could do this with a reverse proxy setup. For exampl you could use Nginx or Apache.

Here’s how to host multiple Docker containers on the same Droplet with Nginx Reverse Proxy:

https://www.digitalocean.com/community/questions/how-to-host-multiple-docker-containers-on-a-single-droplet-with-nginx-reverse-proxy

Hope that this helps! Let me know if you have any questions. Regards, Bobby

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.