Skip to content

Commit

Permalink
fix: update db container name instances in env (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt authored Oct 19, 2023
1 parent f135d63 commit fa03984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/src/envGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion platform/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fa03984

Please sign in to comment.