init 308 B

123456
  1. #!/usr/bin/env bash
  2. docker-compose up --detach mongo
  3. curl --max-time 10 --retry 5 --retry-delay 5 --retry-all-errors --silent --output /dev/null localhost:27017
  4. docker-compose exec mongo mongosh --eval "rs.initiate({ _id: 'overleaf', members: [{ _id: 0, host: 'mongo:27017' }] })"
  5. docker-compose down mongo