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

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.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

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