Rahul Reddy

I build AI platforms, Cross-Platform Apps, and the Infra they run on.

Building in the open, writing about what breaks, and sharing the occasional opinion.

hi [at] rahulmx.com
GoTypeScriptSwiftPythoniOSSwiftUIReact NativeNext.jsReactNode.jsFastAPILLM OrchestrationAgentic SystemsLiteLLMRAGPrompt EngineeringPostgreSQLBigQuerySnowflakeRedisMongoDBGCPDockerTerraformProxmoxGitHub ActionsCloudflare WorkersCloudflare R2Cloudflare D1Cloudflare TunnelDistributed SystemsAPI DesignData PipelinesPlatform ArchitectureGoTypeScriptSwiftPythoniOSSwiftUIReact NativeNext.jsReactNode.jsFastAPILLM OrchestrationAgentic SystemsLiteLLMRAGPrompt EngineeringPostgreSQLBigQuerySnowflakeRedisMongoDBGCPDockerTerraformProxmoxGitHub ActionsCloudflare WorkersCloudflare R2Cloudflare D1Cloudflare TunnelDistributed SystemsAPI DesignData PipelinesPlatform Architecture

CoolifyPostgresDocker

Coolify: expose Postgres port so other services can reach it

Make it publicly available: checked

Public Port: 5432

When you add Postgres via a Coolify Service Stack, the container is only reachable within that stack's internal Docker network. Other Coolify-managed apps on the same host can't connect to it.

Fix

Open the Postgres service → ConfigurationGeneral

Make it publically available: enabled
Public Port: 5432

Redeploy the postgres service.

Connecting from another service

Use the Postgres URL (internal) value found under ConfigurationGeneralNetwork of the postgres service in your coolify dashboard.

DATABASE_URL=postgresql://user:password@host:port/dbname