From fa039845f18aeeacc90da36c1fbd972893509ed9 Mon Sep 17 00:00:00 2001 From: Tim Raderschad Date: Thu, 19 Oct 2023 23:48:50 +0200 Subject: [PATCH] fix: update db container name instances in env (#1333) --- cli/src/envGenerator.js | 4 ++-- platform/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/envGenerator.js b/cli/src/envGenerator.js index cc9c92a18d..a7aa41266b 100644 --- a/cli/src/envGenerator.js +++ b/cli/src/envGenerator.js @@ -57,7 +57,7 @@ const getEnvDefinition = (envValues, isDockerCompose, dbPort, platformUrl) => { "Database (Backend)": { REWORKD_PLATFORM_DATABASE_USER: "reworkd_platform", REWORKD_PLATFORM_DATABASE_PASSWORD: "reworkd_platform", - REWORKD_PLATFORM_DATABASE_HOST: "db", + REWORKD_PLATFORM_DATABASE_HOST: "agentgpt_db", REWORKD_PLATFORM_DATABASE_PORT: dbPort, REWORKD_PLATFORM_DATABASE_NAME: "reworkd_platform", REWORKD_PLATFORM_DATABASE_URL: @@ -66,7 +66,7 @@ const getEnvDefinition = (envValues, isDockerCompose, dbPort, platformUrl) => { "Database (Frontend)": { DATABASE_USER: "reworkd_platform", DATABASE_PASSWORD: "reworkd_platform", - DATABASE_HOST: "db", + DATABASE_HOST: "agentgpt_db", DATABASE_PORT: dbPort, DATABASE_NAME: "reworkd_platform", DATABASE_URL: diff --git a/platform/entrypoint.sh b/platform/entrypoint.sh index ffd5a80129..4941d1635f 100644 --- a/platform/entrypoint.sh +++ b/platform/entrypoint.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -host=db +host=agentgpt_db port=3306 until echo "SELECT 1;" | nc "$host" "$port" > /dev/null 2>&1; do