mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-08-13 03:50:19 +02:00
* docker: update .env and docker-compose.yml for SMTP and new services * docker: add external MinIO, MongoDB, and GarageHQ examples with setup instructions * docs: update README with dotenv docker setup instructions and configuration redirect for external services * docker: update service dependency condition for setup-themes in docker-compose.yml * chore: update example URLs in .env for public services
27 lines
589 B
YAML
27 lines
589 B
YAML
name: notesnook-external-mongodb-infra
|
|
|
|
services:
|
|
notesnook-mongodb:
|
|
image: mongo:7.0.12
|
|
hostname: notesnook-mongodb
|
|
ports:
|
|
- 27017:27017
|
|
volumes:
|
|
- dbdata:/data/db
|
|
networks:
|
|
- notesnook-shared
|
|
command: --replSet rs0 --bind_ip_all
|
|
healthcheck:
|
|
test: echo 'try { rs.status() } catch (err) { rs.initiate() }; db.runCommand("ping").ok' | mongosh mongodb://localhost:27017 --quiet
|
|
interval: 40s
|
|
timeout: 30s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
networks:
|
|
notesnook-shared:
|
|
name: notesnook-shared
|
|
|
|
volumes:
|
|
dbdata:
|