Connect from Your Web Service
Reach your database from a web service in the same project, with no public exposure.
Last updated: May 12, 2026
Connect from your web service
Databases on lowcloud Platform are private by default. They only accept connections from inside the same project. Use the database's service name as the hostname.
If your database is named app-db and you used the PostgreSQL template defaults:
DATABASE_URL=postgres://myuser:<password>@app-db:5432/myapp
For MariaDB:
DATABASE_URL=mysql://myuser:<password>@app-db:3306/myapp
Set the connection string as an environment variable on your web service. The new value takes effect after the next redeploy.
When you do need to connect from outside the project (migrations, SQL clients, BI tools), opt in to Public Access via TCP Proxy.