[{"data":1,"prerenderedAt":326},["ShallowReactive",2],{"docs-en-platform\u002Fdatabases\u002Fconnect":3,"docs-navigation-en":77,"docs-surround-en-platform\u002Fdatabases\u002Fconnect":319},{"id":4,"title":5,"body":6,"description":66,"extension":67,"lastUpdated":68,"meta":69,"navigation":70,"path":73,"seo":74,"stem":75,"__hash__":76},"docs\u002Fen\u002F1.docs\u002F2.platform\u002F3.databases\u002F3.connect.md","Connect from Your Web Service",{"type":7,"value":8,"toc":62},"minimark",[9,14,23,31,41,44,50,53],[10,11,13],"h2",{"id":12},"connect-from-your-web-service","Connect from your web service",[15,16,17,18,22],"p",{},"Databases on lowcloud Platform are ",[19,20,21],"strong",{},"private by default",". They only accept connections from inside the same project. Use the database's service name as the hostname.",[15,24,25,26,30],{},"If your database is named ",[27,28,29],"code",{},"app-db"," and you used the PostgreSQL template defaults:",[32,33,38],"pre",{"className":34,"code":36,"language":37},[35],"language-text","DATABASE_URL=postgres:\u002F\u002Fmyuser:\u003Cpassword>@app-db:5432\u002Fmyapp\n","text",[27,39,36],{"__ignoreMap":40},"",[15,42,43],{},"For MariaDB:",[32,45,48],{"className":46,"code":47,"language":37},[35],"DATABASE_URL=mysql:\u002F\u002Fmyuser:\u003Cpassword>@app-db:3306\u002Fmyapp\n",[27,49,47],{"__ignoreMap":40},[15,51,52],{},"Set the connection string as an environment variable on your web service. The new value takes effect after the next redeploy.",[15,54,55,56,61],{},"When you do need to connect from outside the project (migrations, SQL clients, BI tools), opt in to ",[57,58,60],"a",{"href":59},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fpublic-access","Public Access via TCP Proxy",".",{"title":40,"searchDepth":63,"depth":63,"links":64},2,[65],{"id":12,"depth":63,"text":13},"Reach your database from a web service in the same project, with no public exposure.","md","2026-05-12",{},{"icon":71,"title":72},"i-lucide-plug","Connect","\u002Fen\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fconnect",{"title":5,"description":66},"en\u002F1.docs\u002F2.platform\u002F3.databases\u002F3.connect","jRE3relMJvqoI26ajFePmIcWkiRlXujvIXT-Y0Vqk0M",[78,97,109,246,273,312],{"title":79,"path":80,"stem":81,"children":82,"icon":96},"Getting Started","\u002Fhosting\u002Fdocs\u002Fgetting-started","en\u002F1.docs\u002F1.getting-started\u002F1.index",[83,86,91],{"title":84,"path":80,"stem":81,"icon":85,"children":-1},"Introduction","i-lucide-house",{"title":87,"path":88,"stem":89,"icon":90,"children":-1},"Get Started","\u002Fhosting\u002Fdocs\u002Fgetting-started\u002Fget-started","en\u002F1.docs\u002F1.getting-started\u002F2.get-started","i-lucide-rocket",{"title":92,"path":93,"stem":94,"icon":95,"children":-1},"How It Works","\u002Fhosting\u002Fdocs\u002Fgetting-started\u002Fhow-it-works","en\u002F1.docs\u002F1.getting-started\u002F3.how-it-works","i-lucide-lightbulb",false,{"title":98,"path":99,"stem":100,"children":101,"icon":96},"Guides","\u002Fhosting\u002Fdocs\u002Fguides","en\u002F1.docs\u002F2.guides\u002F1.index",[102,104],{"title":98,"path":99,"stem":100,"icon":103,"children":-1},"i-lucide-book-open",{"title":105,"path":106,"stem":107,"icon":108,"children":-1},"Connect a Container Registry","\u002Fhosting\u002Fdocs\u002Fguides\u002Fcontainer-registries","en\u002F1.docs\u002F2.guides\u002F2.container-registries","i-lucide-container",{"title":110,"icon":96,"path":111,"stem":112,"children":113,"page":96},"Platform","\u002Fhosting\u002Fdocs\u002Fplatform","en\u002F1.docs\u002F2.platform",[114,134,201,236],{"title":84,"path":115,"stem":116,"children":117,"icon":96},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fintroduction","en\u002F1.docs\u002F2.platform\u002F1.introduction\u002F1.index",[118,121,126,131],{"title":119,"path":115,"stem":116,"icon":120,"children":-1},"Overview","i-lucide-cloud",{"title":122,"path":123,"stem":124,"icon":125,"children":-1},"Use Cases","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fintroduction\u002Fwhen-to-use","en\u002F1.docs\u002F2.platform\u002F1.introduction\u002F2.when-to-use","i-lucide-compass",{"title":127,"path":128,"stem":129,"icon":130,"children":-1},"Features","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fintroduction\u002Fwhat-you-get","en\u002F1.docs\u002F2.platform\u002F1.introduction\u002F3.what-you-get","i-lucide-package-check",{"title":87,"path":132,"stem":133,"icon":90,"children":-1},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fintroduction\u002Fget-started","en\u002F1.docs\u002F2.platform\u002F1.introduction\u002F4.get-started",{"title":135,"path":136,"stem":137,"children":138,"icon":96},"Web Services","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F01.index",[139,142,147,152,156,161,166,171,176,181,186,191,196],{"title":140,"path":136,"stem":137,"icon":141,"children":-1},"Source Options","i-lucide-app-window",{"title":143,"path":144,"stem":145,"icon":146,"children":-1},"Build Strategies","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fbuild-strategies","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F02.build-strategies","i-lucide-hammer",{"title":148,"path":149,"stem":150,"icon":151,"children":-1},"Configuration","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fconfiguration","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F03.configuration","i-lucide-settings",{"title":153,"path":154,"stem":155,"icon":90,"children":-1},"Deploying","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fdeploying","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F04.deploying",{"title":157,"path":158,"stem":159,"icon":160,"children":-1},"Scaling","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fscaling","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F05.scaling","i-lucide-scaling",{"title":162,"path":163,"stem":164,"icon":165,"children":-1},"Domains","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fdomains","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F06.domains","i-lucide-globe",{"title":167,"path":168,"stem":169,"icon":170,"children":-1},"Service Networking","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fconnecting-services","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F07.connecting-services","i-lucide-network",{"title":172,"path":173,"stem":174,"icon":175,"children":-1},"Env Variables","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fenvironment-variables","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F08.environment-variables","i-lucide-key-round",{"title":177,"path":178,"stem":179,"icon":180,"children":-1},"Storage","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fpersistent-storage","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F09.persistent-storage","i-lucide-hard-drive",{"title":182,"path":183,"stem":184,"icon":185,"children":-1},"Defaults","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Flimits","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F10.limits","i-lucide-gauge",{"title":187,"path":188,"stem":189,"icon":190,"children":-1},"Billing","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fbilling","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F11.billing","i-lucide-credit-card",{"title":192,"path":193,"stem":194,"icon":195,"children":-1},"Shell","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fshell","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F12.shell","i-lucide-square-terminal",{"title":197,"path":198,"stem":199,"icon":200,"children":-1},"Drop a Site","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fweb-services\u002Fdrop","en\u002F1.docs\u002F2.platform\u002F2.web-services\u002F13.drop","i-lucide-upload",{"title":202,"path":203,"stem":204,"children":205,"icon":96},"Databases","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F1.index",[206,209,214,216,220,223,228,233],{"title":207,"path":203,"stem":204,"icon":208,"children":-1},"Templates","i-lucide-database",{"title":210,"path":211,"stem":212,"icon":213,"children":-1},"Create","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fcreate","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F2.create","i-lucide-plus",{"title":72,"path":215,"stem":75,"icon":71,"children":-1},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fconnect",{"title":217,"path":59,"stem":218,"icon":219,"children":-1},"Public Access","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F4.public-access","i-lucide-radio-tower",{"title":177,"path":221,"stem":222,"icon":180,"children":-1},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fstorage","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F5.storage",{"title":224,"path":225,"stem":226,"icon":227,"children":-1},"Management","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fmanagement","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F6.management","i-lucide-sliders-horizontal",{"title":229,"path":230,"stem":231,"icon":232,"children":-1},"Operations","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Foperational-notes","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F7.operational-notes","i-lucide-clipboard-list",{"title":187,"path":234,"stem":235,"icon":190,"children":-1},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fbilling","en\u002F1.docs\u002F2.platform\u002F3.databases\u002F8.billing",{"title":98,"path":237,"stem":238,"children":239,"icon":96},"\u002Fhosting\u002Fdocs\u002Fplatform\u002Fguides","en\u002F1.docs\u002F2.platform\u002F4.guides\u002F1.index",[240,241],{"title":98,"path":237,"stem":238,"icon":103,"children":-1},{"title":242,"path":243,"stem":244,"icon":245,"children":-1},"Hermes Agent","\u002Fhosting\u002Fdocs\u002Fplatform\u002Fguides\u002Fsetup-hermes-agent","en\u002F1.docs\u002F2.platform\u002F4.guides\u002F2.setup-hermes-agent","i-lucide-bot",{"title":247,"path":248,"stem":249,"children":250,"icon":96},"App Services","\u002Fhosting\u002Fdocs\u002Fapp-services","en\u002F1.docs\u002F3.app-services\u002F1.index",[251,252,256,260,264,269],{"title":247,"path":248,"stem":249,"icon":90,"children":-1},{"title":253,"path":254,"stem":255,"icon":151,"children":-1},"Build Settings","\u002Fhosting\u002Fdocs\u002Fapp-services\u002Fbuild-settings","en\u002F1.docs\u002F3.app-services\u002F2.build-settings",{"title":172,"path":257,"stem":258,"icon":259,"children":-1},"\u002Fhosting\u002Fdocs\u002Fapp-services\u002Fenvironment-variables","en\u002F1.docs\u002F3.app-services\u002F3.environment-variables","i-lucide-key",{"title":261,"path":262,"stem":263,"icon":165,"children":-1},"Custom Domains","\u002Fhosting\u002Fdocs\u002Fapp-services\u002Fcustom-domains","en\u002F1.docs\u002F3.app-services\u002F4.custom-domains",{"title":265,"path":266,"stem":267,"icon":268,"children":-1},"Health Checks","\u002Fhosting\u002Fdocs\u002Fapp-services\u002Fhealth-checks","en\u002F1.docs\u002F3.app-services\u002F5.health-checks","i-lucide-heart-pulse",{"title":270,"path":271,"stem":272,"icon":160,"children":-1},"Autoscaling","\u002Fhosting\u002Fdocs\u002Fapp-services\u002Fautoscaling","en\u002F1.docs\u002F3.app-services\u002F6.autoscaling",{"title":274,"path":275,"stem":276,"children":277,"icon":96},"Helm Releases","\u002Fhosting\u002Fdocs\u002Fhelm-releases","en\u002F1.docs\u002F4.helm-releases\u002F1.index",[278,280,284,289,293,298,302,307],{"title":274,"path":275,"stem":276,"icon":279,"children":-1},"i-lucide-package",{"title":281,"path":282,"stem":283,"icon":208,"children":-1},"Deploy PostgreSQL","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-postgresql","en\u002F1.docs\u002F4.helm-releases\u002F2.deploy-postgresql",{"title":285,"path":286,"stem":287,"icon":288,"children":-1},"Deploy Redis","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-redis","en\u002F1.docs\u002F4.helm-releases\u002F3.deploy-redis","i-lucide-zap",{"title":290,"path":291,"stem":292,"icon":288,"children":-1},"Deploy Valkey","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-valkey","en\u002F1.docs\u002F4.helm-releases\u002F3.deploy-valkey",{"title":294,"path":295,"stem":296,"icon":297,"children":-1},"Deploy n8n","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-n8n","en\u002F1.docs\u002F4.helm-releases\u002F4.deploy-n8n","i-lucide-workflow",{"title":299,"path":300,"stem":301,"icon":180,"children":-1},"Deploy RustFS","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-rustfs","en\u002F1.docs\u002F4.helm-releases\u002F5.deploy-rustfs",{"title":303,"path":304,"stem":305,"icon":306,"children":-1},"Deploy OpenSearch","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-opensearch","en\u002F1.docs\u002F4.helm-releases\u002F6.deploy-opensearch","i-lucide-search",{"title":308,"path":309,"stem":310,"icon":311,"children":-1},"Deploy Keycloak","\u002Fhosting\u002Fdocs\u002Fhelm-releases\u002Fdeploy-keycloak","en\u002F1.docs\u002F4.helm-releases\u002F7.deploy-keycloak","i-lucide-shield-check",{"title":313,"path":314,"stem":315,"children":316,"icon":96},"Glossary","\u002Fhosting\u002Fdocs\u002Fglossary","en\u002F1.docs\u002F5.glossary\u002F1.index",[317],{"title":313,"path":314,"stem":315,"icon":318,"children":-1},"i-lucide-book-a",[320,323],{"title":210,"path":321,"stem":212,"description":322,"icon":213,"children":-1},"\u002Fen\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fcreate","Deploy a PostgreSQL or MariaDB instance into a project on lowcloud Platform.",{"title":217,"path":324,"stem":218,"description":325,"icon":219,"children":-1},"\u002Fen\u002Fdocs\u002Fplatform\u002Fdatabases\u002Fpublic-access","Expose your database on a dedicated public TCP port for migrations, BI tools, and SQL clients.",1791184615921]