Kazuma Gaijin
Kazuma Gaijin

Reputation: 25

Docker with NGINX Reverse Proxy for a Flask app

I'm currently learning how to host websites and manage servers and especially how to host multisites inside a VPS. So I'm trying to set up a reverse proxy with jwilde/nginx-proxy. But what I'm trying to understand is :

Annexe 1 Annexe 1

My current setup is : enter image description here

Do you have any ideas ?

Upvotes: 1

Views: 591

Answers (1)

JChallenger
JChallenger

Reputation: 61

I would suggest having a single container for your nginx reverse proxy, and only include nginx (or whatever other listener) where your other containers need one. You may have an opportunity to proxy_pass traffic directly to your Flask application without another nginx server.

However, your current setup and Annexe1 could be correct: you have the flexibility to use any host:port accepting traffic in your containers. It could even be another reverse proxy~ As long as your proxy_pass your traffic from your Reverse Proxy nginx to an appropriate listener.

Upvotes: 1

Related Questions