mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-03 10:42:16 +00:00
Merge pull request #3273 from ayham291/mongo-replica
fix(mongo): use appName instead of localhost for replica set
This commit is contained in:
@@ -54,7 +54,7 @@ if [ "$REPLICA_STATUS" != "1" ]; then
|
|||||||
mongosh --eval '
|
mongosh --eval '
|
||||||
rs.initiate({
|
rs.initiate({
|
||||||
_id: "rs0",
|
_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
|
// Wait for the replica set to initialize
|
||||||
|
|||||||
Reference in New Issue
Block a user