mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 18:12:02 +00:00
0a470fb54f
* Avoid stray backslash in ggrep pattern * Add new services to README * Avoid building in bin/up * Add init script * Update README.md * Use cURL to wait for MongoDB * Add a note about COMPOSE_PARALLEL_LIMIT * Use the new callout syntax GitOrigin-RevId: 9aaec37e893a2da807fed2dc4b00fa52a433c390
6 lines
308 B
Bash
Executable file
6 lines
308 B
Bash
Executable file
#!/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
|