DEV Community

loading...

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

bobbyiliev profile image Bobby Iliev Originally published at digitalocean.com ・1 min read

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?

Discussion (2)

pic
Editor guide
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 Iliev Author

Hey 👋! Thanks for the feedback!

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