Comment on Having trouble setting up Nginx
e0qdk@reddthat.com 2 days ago
Nginx is running in Docker
Are you launching the container with the correct ports exposed? You generally cannot make connections into a container from the outside unless you explicitly tell Docker that you want it to allow that to happen… i.e. assuming you want a simple one-to-one mapping for HTTP and HTTPS standard ports are you passing something like -p 80:80 -p 443:443
to docker run
on the command line, adding the appropriate ports in your compose file, or doing something similar with another tool for bringing the container up?
pirateMonkey@lemmy.world 2 days ago
Yes, I’m using this container: github.com/NginxProxyManager/nginx-proxy-manager using the compose file as written (except I’m naming it nginx instead of app). It maps ports 80 and 443 for traffic and 81 for the manager, which is running.