Question

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 331 views
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.

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

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

Submit an Answer