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 February 16, 2020
  • Docker

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
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:

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