Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Running a separate PostgreSQL instance alongside Cloudron

Running a separate PostgreSQL instance alongside Cloudron

Scheduled Pinned Locked Moved Solved Support
packagingpostgresql
8 Posts 5 Posters 465 Views 5 Watching
  • 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.
  • vadimV Offline
    vadimV Offline
    vadim
    wrote on last edited by joseph
    #1

    Hi Cloudron team,

    I’m considering setting up a separate PostgreSQL database on my Ubuntu server where Cloudron is already running. The main reason for this is to use it for a RAG (Retrieval-Augmented Generation) system and a vector database.

    Since Cloudron already runs its own PostgreSQL instance inside Docker, I want to avoid any conflicts. My plan is:

    Installing a native PostgreSQL instance directly on the root system (outside of Docker).
    Using a different port (e.g., 5433 instead of 5432) to prevent interference with Cloudron’s services.
    Ensuring that this separate instance does not impact Cloudron’s operations.

    My Questions:
    Does Cloudron have any known conflicts with additional software running outside of Docker?
    Is there any risk in running a separate PostgreSQL instance on a different port?
    Would you advise against this approach? If so, why?
    Are there any recommended best practices for running external software alongside Cloudron?
    I’d love to hear your thoughts before proceeding. Thanks in advance for any insights!

    1 Reply Last reply
    1
    • andreasduerenA Offline
      andreasduerenA Offline
      andreasdueren
      wrote on last edited by
      #2

      I'ts generally not adviced to run things next to cloudron. I was exploring similar strategies but ended up just packaging my needs.

      1 Reply Last reply
      1
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        You may want to check out https://forum.cloudron.io/post/103359, which may be good to package for exactly such purposes.

        There may not be a reason to run another instance, as installing another existing app that uses PG just to use its PG is also an option. Surrogate type of thing, yet managed as an app.

        The former is much more scalable.

        Conscious tech

        1 Reply Last reply
        1
        • J joseph marked this topic as a question on
        • vadimV Offline
          vadimV Offline
          vadim
          wrote on last edited by
          #4

          Is there any way to use pgvector via any cloudron app?

          robiR 1 Reply Last reply
          0
          • J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #5

            Apps like chatwoot use it already . Is that your question though?

            1 Reply Last reply
            0
            • vadimV Offline
              vadimV Offline
              vadim
              wrote on last edited by vadim
              #6

              I mean to get access to vector db via n8n, for example

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #7

                Cloudron does not have separate database instances outside of those created for apps. Maybe we will offer distinct database in the future but this is not currently there. It is not quite clear what your use-case is, but if you want to connect do a db instance from another app, you can checkout https://docs.cloudron.io/guides/connect-postgresql/

                Use with great caution though as it could break the app relying on that database.

                1 Reply Last reply
                0
                • J joseph has marked this topic as solved on
                • vadimV vadim

                  Is there any way to use pgvector via any cloudron app?

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #8

                  @vadim said in Running a separate PostgreSQL instance alongside Cloudron:

                  Is there any way to use pgvector via any cloudron app?

                  The answer is a simple search for "pgvector" in the forum.

                  It yields: https://forum.cloudron.io/topic/13139/consider-adding-support-for-pgvector-pgvectorscale-for-pgsql

                  Conscious tech

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search