mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 14:03:42 -05:00
7 lines
308 B
Text
7 lines
308 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
docker-compose up --detach mongo
|
||
|
curl --max-time 10 --retry 5 --retry-delay 5 --retry-all-errors --silent --output /dev/null localhost:27017
|
||
|
docker-compose exec mongo mongosh --eval "rs.initiate({ _id: 'overleaf', members: [{ _id: 0, host: 'mongo:27017' }] })"
|
||
|
docker-compose down mongo
|