[Unit] Description=Overleaf MongoDB container [Container] AutoUpdate=registry Command="--replSet overleaf" ContainerName=overleaf-database Environment=MONGO_INITDB_DATABASE=sharelatex Environment=TZ=Europe/Zurich HealthCheck="echo 'db.stats().ok' | mongosh localhost:27017/test --quiet" HealthCheckInterval=10s HealthCheckTimeout=10s HealthCheckRetries=5 Image=docker.io/mongo:8.0 Label=io.containers.autoupdate=registry Pod=overleaf.pod StartWithPod=true Timezone=Europe/Zurich Volume=overleaf-database-data.volume:/data/db Volume=/var/mnt/nas/containers/overleaf/storage/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js [Service] Restart=always [Install] WantedBy=default.target