502 Bad Gateway on Centos 8
See original GitHub issueIs there something special we have to do to get it running on Centos 8?
I tried to run the basic docker-compose.yaml example from README
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
whoami:
image: jwilder/whoami
environment:
- VIRTUAL_HOST=whoami.local
And I got:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.19.3</center>
</body>
</html>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:15 (4 by maintainers)
Top Results From Across the Web
How To Fix '502 Bad Gateway' Error In Nginx | LinuxHostSupport
The 502 Bad Gateway error is an HTTP status code that means that one server received an invalid response from another server.
Read more >Solved: Centos 8 - 502 Bad Gateway - Alfresco Hub
I loaded Alfresco on a Centos 8 server yesterday using the docker-compose method and after the install I could not get to the...
Read more >How To Fix a 502 Bad Gateway Error - Kinsta
The 502 (Bad Gateway) status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an...
Read more >Docker and firewalld causing 502 Bad Gateway - Reddit
Docker and firewalld causing 502 Bad Gateway Error on CentOs 8 ... Can't get docker to work with my firewall because it blocks...
Read more >How to Fix 502 Bad Gateway Error - Hostinger
The 502 Bad Gateway error indicates that the server which you're connecting to received an invalid response. When accessing a URL, your browser ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I usually create a separate Docker network outside of Docker compose then use it as an external network in the compose file.
then
Repeated in every compose file for services that will be proxied.
Also take a look at https://github.com/buchdag/letsencrypt-nginx-proxy-companion-compose
Ahh so they’re on different networks… hmm. Must be related to having different docker-compose stacks for them in my case.
Thanks for you help debugging that. I’ll work on figuring out how to bridge that networking unless you have any tips offhand.