A TCP service for routing all requests to MongoDB via a centralised service.
10K+
The following docker stack file has been used to test the service:
version: '3.7'
services:
mongo:
image: mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: test
MONGO_INITDB_ROOT_PASSWORD: test
volumes:
- $DATA_DIR/mongo:/data/db
mongo-service:
image: mongo-service
stop_signal: SIGTERM
ports:
- "2000:2000"
environment:
- "MONGO_URI=mongodb://test:test@mongo/admin?authSource=admin&compressors=snappy&w=1"
- VERSION_HISTORY_DATABASE=versionHistory
- VERSION_HISTORY_COLLECTION=entities
- METRICS_COLLECTION=metrics
volumes:
- $DATA_DIR/mongo-service:/opt/spt/logs
Content type
Image
Digest
sha256:78b402427…
Size
44.7 MB
Last updated
about 1 month ago
docker pull sptrakesh/mongo-service