Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
ProGet on rootless Docker - Cannot switch Port
-
Hi everyone,
I'm trying to run ProGet on a rootless docker. But I'm not able to switch its ports.
I just tried to do it like mentioned in Troubleshooting Docker InstallationsBut the config file seams to be ignoerd by ProGet.
I even removed all relevant containers from the system and create everything from the scratch, but it still doesn't work.
What am I doing wrong?
I also can't find any errors in the logs of the container.The ProGet.config looks like this:
<?xml version="1.0" encoding="utf-8"?><InedoAppConfig><ConnectionString Type="SqlServer"></ConnectionString><WebServer Enabled="true" Urls="http://*:8181/"/></InedoAppConfig>
And the relevant Part of my docker-compose.yaml like this:
proget: container_name: ProGet image: proget.inedo.com/productimages/inedo/proget:latest restart: unless-stopped networks: - devenv-network environment: SQL_CONNECTION_STRING: 'Data Source=pgdb; Initial Catalog=ProGet; User ID=sa; Password=***' TZ: 'Europe/Berlin' ports: - '8181:8181' volumes: - '$PROGET_HOME/packages:/var/proget/packages' - '$PROGET_HOME/config:/usr/share/Inedo/SharedConfig' depends_on: - progetDb
-
I have found the solution myself.
In the current Version of the ProGet Dockercontainer you have to specify the same environment variable as for BuildMaster or Otter: ASPNETCORE_URLSSo here is my modified docker-compose.yaml:
proget: container_name: ProGet image: proget.inedo.com/productimages/inedo/proget:latest restart: unless-stopped networks: - devenv-network environment: SQL_CONNECTION_STRING: 'Data Source=pgdb; Initial Catalog=ProGet; User ID=sa; Password=***' TZ: 'Europe/Berlin' ASPNETCORE_URLS: 'http://*:8181' ports: - '8181:8181' volumes: - '$PROGET_HOME/packages:/var/proget/packages' depends_on: - progetDb
So, my ProGet is running now, but could please someone update the documentation on this topic.
-
Hi @pwe,
Thanks for updating us that you were able to figure this out. I have updated our documentation to include information about changing the internal port number.
- https://docs.inedo.com/docs/installation-linux-docker-guide
- https://docs.inedo.com/docs/installation-linux-supported-environment-variables
Thanks,
Rich