<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Connect to Postgres via environment variables]]></title><description><![CDATA[<p dir="auto">Apparently Directus supports to connect to external existing Postgres databases via custom environment variables - I wanted to try it these days and was wondering if someone has tried it already.</p>
<p dir="auto">Also, can I use the same to connect to the Postgres addon database which I'd use for my custom app?</p>
<p dir="auto">Also, can anyone recommend a free online Postgres database I could use for testing? I only know ElephantSQL, but they have announced their end of life.</p>
]]></description><link>https://forum.cloudron.io/topic/11685/connect-to-postgres-via-environment-variables</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 10:50:04 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/11685.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 May 2024 08:51:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect to Postgres via environment variables on Thu, 09 May 2024 09:51:16 GMT]]></title><description><![CDATA[<p dir="auto">I could successfully connect to a test postgres database with these environment variables:</p>
<p dir="auto">DB_HOST=IP<br />
DB_PORT=Port<br />
DB_DATABASE="db_name"<br />
DB_USER="user_name"<br />
DB_PASSWORD="password"</p>
<p dir="auto">Then I ran<br />
npx directus bootstrap<br />
to initialise the database.</p>
<p dir="auto">When I run commands like<br />
npx directus count table_name<br />
it provides correct answers indicating that the database connection works.</p>
<p dir="auto">However, for some reason, the database doesn't show up in my GUI.</p>
]]></description><link>https://forum.cloudron.io/post/88239</link><guid isPermaLink="true">https://forum.cloudron.io/post/88239</guid><dc:creator><![CDATA[ekevu123]]></dc:creator><pubDate>Thu, 09 May 2024 09:51:16 GMT</pubDate></item></channel></rss>