DEV Community

Bobby
Bobby

Posted on Edited on Originally published at digitalocean.com

[VIDEO] How to Host Multiple Docker Containers on a Single Server with Nginx Reverse Proxy?

Recently I had to setup a few small Docker containers for a couple of small websites.

As the sites were really small I didn’t want to run each one on a separate Droplet, so instead, I used Nginx with separate Nginx server blocks for each site and a reverse proxy for each Docker container.

Here’s how I set that up:

Post: How to Host Multiple Docker Containers on a Single Droplet with Nginx Reverse Proxy?

If you're into DevOps, you'll love DevOps Daily: it has free bite-sized exercises, tools, and guides to level up fast.

Top comments (2)

Collapse
 
karawitan profile image
karawitan •

Hello Bobby, thank you very much for sharing this simple and efficient procedure. Did you try to setup the same using traefik ?

Collapse
 
bobbyiliev profile image
Bobby •

Hey 👋! Thanks for the feedback!

I've not worked with traefik much, I should really check it out!