How to change nginx port 8080 to 80

as title, working with the docker-compose setup, how can i change the default port? I run the containers on a separated and directly connected network so i can reach the webserver container directly on port 80; I don’t want useless overhead setting up a reverse proxy when the 80 is free

the standard portmappings don’t work for you; Compose file version 3 reference | Docker Documentation
e.g.
ports:
- “80:8080”

it doesn’t work, containers are not exposed on host but directly connected on the networks, i need a way to change the default 8080 in the zammad configuration somewhere

i’m not really sure what you mean with that. But you might want look at; use port 8080 for nginx by monotek · Pull Request #193 · zammad/zammad-docker-compose · GitHub
you probably have todo some customization’s of the nginx container if you want it to listen on 80

can you please indicate me where the port 8080 is configured? if it’s in the nginx server, which conf file i need to look out for? on /etc/nginx/nginx.conf there’s nothing referring to 8080

have you checked the /etc/nginx/sites-enabled/default, which is the defacto standard place to look?
server {
listen 8080;

also you can just check here; zammad-docker-compose/docker-entrypoint.sh at master · zammad/zammad-docker-compose · GitHub, that it actually utilizes that location

solved, i found an hidden variables in the entrypoint file of zammad container:

NGINX_PORT=80

thank you anyway for you support

well i wouldn’t exactly call it hidden; zammad-docker-compose/docker-entrypoint.sh at master · zammad/zammad-docker-compose · GitHub but glad you could make it work

well, when 2 of the 3 nginx variables are shown on the specific variables page and the third is far away on the entryfile…yeah, it’s kind hidden and the documentation lacking

i believe this changed is only made no more than a month ago, so you should give the maintainers some slack. Also you could propose a change in the documentation, i would expect the maintainers to be happy with any contribution.

yeah i was thinking that was a recent changes, how can I propose to update the docs?

press the “edit on github” button on the top; zammad-documentation/environment.rst at master · zammad/zammad-documentation · GitHub

pull request

thank you for the help
have a great day

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.