Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose not working adding ports with each start #10

Closed
blindzero opened this issue Mar 5, 2021 · 2 comments
Closed

docker-compose not working adding ports with each start #10

blindzero opened this issue Mar 5, 2021 · 2 comments

Comments

@blindzero
Copy link

Starting container new with docker-compose will result in port added with each start.

artifacts-nuget | 2021/03/05 11:00:11 [emerg] 32#32: invalid port in "808080" of the "listen" directive in /etc/nginx/conf.d/nuget.conf:6
artifacts-nuget | nginx: [emerg] invalid port in "808080" of the "listen" directive in /etc/nginx/conf.d/nuget.conf:6
artifacts-nuget | 2021/03/05 11:00:26 [emerg] 30#30: invalid port in "8080808080" of the "listen" directive in /etc/nginx/conf.d/nuget.conf:6
artifacts-nuget | nginx: [emerg] invalid port in "8080808080" of the "listen" directive in /etc/nginx/conf.d/nuget.conf:6

Next and so on...

@blindzero
Copy link
Author

blindzero commented Mar 5, 2021

related to #9

issue is line #46 in docker-entrypoint

    sed -i -e "s/listen 80/listen ${SERVER_PORT}/" /etc/nginx/conf.d/nuget.conf

should be

    sed -i -e "s/listen.*/listen ${SERVER_PORT};/" /etc/nginx/conf.d/nuget.conf

blindzero pushed a commit to blindzero/docker-nuget-server that referenced this issue Mar 5, 2021
@idoop
Copy link
Owner

idoop commented Mar 5, 2021

@blindzero thx.

@idoop idoop closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants