Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 17 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pwe
      last edited by pwe

      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 Installations

      But 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                                                                                                      
      
      P 1 Reply Last reply Reply Quote 0
      • P Offline
        pwe @pwe
        last edited by

        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_URLS

        So 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.

        1 Reply Last reply Reply Quote 0
        • rhessingerR Offline
          rhessinger inedo-engineer
          last edited by

          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

          Products Engineer, Inedo

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation