diff --git a/packages/server/src/utils/databases/mongo.ts b/packages/server/src/utils/databases/mongo.ts index 9cb8a69f4..556878fe2 100644 --- a/packages/server/src/utils/databases/mongo.ts +++ b/packages/server/src/utils/databases/mongo.ts @@ -54,7 +54,7 @@ if [ "$REPLICA_STATUS" != "1" ]; then mongosh --eval ' rs.initiate({ _id: "rs0", - members: [{ _id: 0, host: "localhost:27017", priority: 1 }] + members: [{ _id: 0, host: "${appName}:27017", priority: 1 }] }); // Wait for the replica set to initialize