portainer / portainer-compose

Compose setup for Portainer
http://portainer.io
681 stars 303 forks source link

Changing from port 80 to another #9

Closed turdusmerula closed 7 years ago

turdusmerula commented 7 years ago

Hello, this works very well ! I would like to switch from port 80 to another port for the reverse proxy, is there an easy way to do this? Changing the docker-compose exposed port and nginx listening port does not seem enough.

deviantony commented 7 years ago

Hi @turdusmerula, you'd also need to update the nginx configuration available at nginx/config/portainer.conf.

turdusmerula commented 7 years ago

Thank you for your time, here is what I did:

deviantony commented 7 years ago

That should be enough, note that you need to rebuild the nginx container to use the new configuration.

turdusmerula commented 7 years ago

Made it work, I was following the wrong track as nginx should keep port 80, only portainer-proxy should be reconfigured to expose chosen port "8100:80".

deviantony commented 7 years ago

Sweet, glad it's now working !