sptrakesh/mongo-service

By sptrakesh

Updated about 1 month ago

A TCP service for routing all requests to MongoDB via a centralised service.

Image
Languages & frameworks
Databases & storage
0

10K+

sptrakesh/mongo-service repository overview

Mongo Service

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

Tag summary

Content type

Image

Digest

sha256:78b402427

Size

44.7 MB

Last updated

about 1 month ago

docker pull sptrakesh/mongo-service