From c56def9c979ad3993b20cc85b5f6e3b723667b4d Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sun, 1 Feb 2026 19:54:43 -0600 Subject: [PATCH] fix(db): update database URL for Docker compatibility - Commented out the old database URL for security reasons. - Updated the database connection string to use the Docker service name for PostgreSQL, ensuring proper connectivity in containerized environments. --- packages/server/src/db/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server/src/db/constants.ts b/packages/server/src/db/constants.ts index e820872d1..e520235f9 100644 --- a/packages/server/src/db/constants.ts +++ b/packages/server/src/db/constants.ts @@ -34,5 +34,7 @@ if (DATABASE_URL) { Please migrate to Docker Secrets using POSTGRES_PASSWORD_FILE. Please execute this command in your server: curl -sSL https://dokploy.com/security/0.26.6.sh | bash `); - dbUrl = "postgres://dokploy:amukds4wi9001583845717ad2@localhost:5432/dokploy"; + // postgres://dokploy:amukds4wi9001583845717ad2@localhost:5432/dokploy + dbUrl = + "postgres://dokploy:amukds4wi9001583845717ad2@dokploy-postgres:5432/dokploy"; }