mirror of
https://github.com/altstackHQ/altstack-data.git
synced 2026-04-21 16:25:12 +02:00
feat: add 65 production-ready docker-compose configurations for self-hosting
This commit is contained in:
7
deployments/rocketchat/init-replica.sh
Normal file
7
deployments/rocketchat/init-replica.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
for i in `seq 1 30`; do
|
||||
mongo mongo/rocketchat --eval "rs.initiate({ _id: \"rs0\", members: [ { _id: 0, host: \"localhost:27017\" } ]})" && s=$? && break || s=$?;
|
||||
echo "Tried $i times. Waiting 5s...";
|
||||
sleep 5;
|
||||
done;
|
||||
exit $s
|
||||
Reference in New Issue
Block a user