![unraid setup rocket.chat unraid setup rocket.chat](https://opensource.com/sites/default/files/uploads/rocket-chat-setup-wizard.jpg)
Make sure to get the right IP address of your nginx container by runningĭocker inspect your-flask-app-nginx-container-name/id Make sure you format the docker-compose.yml file properly and make sure the nginx proxy manager and your flash app ngnix containers all belong to the same network "proxy" is just a contrived example for naming a reverse proxy but I think you got the point. You can put the network into the docker-compose something like this version: "3.7" domain name has to be your sub-domain like.Put the port number in your case it's 80.put the service name or get the IP address of the container from portainer under "Forward hostname / IP".Make sure your nginx proxy manager and your docker container runs on the same network. (Maybe it's an https issue?)Īnd here are my cloudflare domain settings. So I put that in my NPM Proxy Host, with details and SSL settings. version: "3.7"Īnd my docker containers, hello_world_flask_default is the docker network with the nginx and flask containers. Here are my current docker compose settings for the nginx and flask containers. I can connect to the server locally through port 8001 just fine. However nothing has worked yet, and all I see are 502 bad gateways or "The page isn't redirecting properly" when I try to access it from the url, and I'm not sure why or what to check to fix it. They will be pointed to an nginx/docker compose app. Now, what I would like to have happen is when someone navigates to the subdomain, in this case. So far when I go to the domain I can see the npm greeting page without a problem. I have portainer and NPM working, I exposed port 80 and 443 on my router, and I've set up my cloudflare domain to point to my pi with ddclient to manage changing IPs. I'm trying to set up a simple hello world flask app managed as a docker container behind nginx proxy manager (NPM) and accessed through a subdomain.