Files
Compose-Examples/examples/overleaf
LRVT 39d101e134 Update docker-compose.yml
overleaf requires mongo >= 8
2026-02-18 11:13:26 +01:00
..
2026-02-18 11:13:26 +01:00
2026-02-18 10:52:43 +01:00

References

Notes

  • Download mongodb-init-replica-set.js next to this compose file before first startup:
  curl -o mongodb-init-replica-set.js https://raw.githubusercontent.com/overleaf/overleaf/main/bin/shared/mongodb-init-replica-set.js
  • MongoDB runs with a replica set (--replSet overleaf), which is required by newer Overleaf versions
  • If migrating from an older setup (mongo 5.0, no replica set), initialize the replica set manually on existing data rather than relying on the init script