Troubleshooting Nginx Bad Gateway Error in Docker Composition

:speech_balloon: Originally posted in #get-help::channel, moved by @Specify

I’ve tried the docker composition with option all in one. I’m able to start all the container on my VM with docker but it says Nginx Bad gate way accessing on the web-browser. Any help or tips

/docker-entrypoint.sh: Configuration complete; ready for start up
2023/10/01 12:08:26 [emerg] 1#1: host not found in resolver “set” in /etc/nginx/conf.d/default.conf:30
nginx: [emerg] host not found in resolver “set” in /etc/nginx/conf.d/default.conf:30

docker logs

keep restarting

Hi @drguiritan,
Could you please provide a copy of your docker-compose.yml file?
It seems that there might be a misconfiguration causing this issue.

Thank you!

here are the attached files which references to the error on testing docker base installation specifically on all-in-one composition.

**for docker logs on container with status restarting… **


**for the yaml file and other configurations **


There appears to be a typo in location / block (the last block of nginx configuration). The line resolver 127.0.0.11 valid=30s is missing a semicolon at the end. Everything else looks correct. Can you retry after fixing that?