How to access my self hosted software installed on DO?

March 17, 2015 2.1k views
Ubuntu Getting Started Docker

I wanted to try out so I decided to spin up a droplet to selfhost it using docker. I have it installed via docker and it works with localhost, but i don’t know how to access it from outside the host server. This is my first experience in networking, so the answer may be obvious, but assistance would be appreciated.

1 Answer

You will likely want to set up nginx with a proxy_pass configuration to route traffic from port 80 on your public interface to the port your app is running on on localhost. You can install nginx with:

apt-get update;
apt-get install nginx

And then set up a proxy pass configuration to point to your app on localhost.

Have another answer? Share your knowledge.