Two nginx proxies inside of Docker

by ATLChris   Last Updated October 09, 2019 22:00 PM

I have been trying to convert all of my local development environments to Docker to avoid needing to install any development environmental tools on my parent machine.

I am using for the initial nginx proxy to support custom domain names at a local TLD of .dv. All of this is working well. In this first project, I have a back-end API and a front-end interface which I am proxying to 2 different domains.

The back-end PHP is working great and my landing page shows no problem when I visit http://requestit-api.dv.

The problem is with my front-end http://requestit-wi.dv which I am using an nginx reverse proxy on. I keep getting a 502 Bad Gateway error and I for the life of me can't figure out what is wrong. Not sure if it is nginx or a docker issue.

Here is my docker-compose.yml and nginx.conf:

Related Questions

Updated May 08, 2018 23:00 PM

Updated April 05, 2018 14:00 PM

Updated April 17, 2019 13:00 PM

Updated July 09, 2019 10:00 AM

Updated October 11, 2016 10:00 AM