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 Installation as container with external Postgres

    Scheduled Pinned Locked Moved Support
    proget-installa
    1 Posts 1 Posters 1 Views
    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.
    • H Offline
      hardik.turakhia
      last edited by

      Hello,
      I am looking to achieve the following:
      Using ProGet image (container) via docker compose, connecting to external (org) Postgres database
      Adding snippet of docker compose, I made referring documentation and AI's help. However, was not successful is getting this to work properly.

      Proget does start up but with its own internal database.
      Requesting help to correctly setup

      networks:
        proget: 
          driver: bridge
      volumes:
        postgres-data:
          external: true
      services:
        proget:
          image: proget.inedo.com/productimages/inedo/proget:latest
          container_name: proget
          restart: unless-stopped
          ports:
            - "8624:80"
          volumes:
            - ./proget-packages:/var/proget/packages
            - ./proget-database:/var/proget/database
            - ./proget-backups:/var/proget/backups
            - ./volumes/packages:/var/proget/packages
            - ./volumes/config:/var/proget/config
            - ./volumes/logs:/var/proget/logs
            - ./volumes/extensions:/var/proget/extensions
            - ./volumes/backups:/var/proget/backups
            - ./certs:/certs:ro
          depends_on:
            - db
          networks:
            - proget
          environment:
            # ASPNETCORE_HTTPS_PORT: "443"
            # ASPNETCORE_URLS: "https://*:443"
            # ASPNETCORE_Kestrel__Certificates__Default__Path: "/certs/proget.pfx"
            # ASPNETCORE_Kestrel__Certificates__Default__Password: "${SSL_CERT_PASSWORD}"
            PROGET_DB_TYPE: "PostgreSQL"
            # PROGET_POSTGRES_CONNECTION_STRING: Server=postgres;Port=5432;Database=proget;Password=Pass@123;Username=root;
            # PROGET_POSTGRES_CONNECTION_STRING: Host=${DB_SERVER_HOST};Port=${DB_SERVER_PORT};Database=${DB_NAME};Username=${DB_USERNAME};Password=${DB_PASSWORD};
            TZ: "${TZ}"
          healthcheck:
            test: ["CMD","curl","-k","https://localhost:443/health"]
            interval: 30s
            timeout: 10s
            retries: 5
            start_period: 60s
        db:   
           image: postgres:16
           container_name: postgres
           environment:
               POSTGRES_USER: ${DB_USERNAME}
               POSTGRES_PASSWORD: ${DB_PASSWORD}
               POSTGRES_DB: ${DB_NAME}
           networks:
               - proget
           volumes:
               - postgres-data:/var/lib/postgresql/data
           # Uncomment if you want to connect to DB
           ports:
           - "4001:5432"
      

      3390bee9-5d7c-4750-8d06-ec522e048a8f-image.jpeg

      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