Sign inSign up

settlemint/mongo

By settlemint

Updated almost 4 years ago

A MongoDB 4 image with a replicaset setup script added to enable change streams.

Image
0

100K+

settlemint/mongo repository overview

settlemint/mongo

A MongoDB 4 image with a replicaset setup script added to enable change streams.

Usage

version: '3.6'

services:
  mongo:
    container_name: 'mongo'
    image: 'settlemint/mongo:latest'
    command: mongod --replSet replicaset
    hostname: mongo
    ports:
      - '27017:27017'

  mongo-replicaset-setup:
    container_name: 'mongo-replicaset-setup'
    image: 'settlemint/mongo:latest'
    depends_on:
      - 'mongo'
    links:
      - mongo:mongo
    entrypoint: [ './replicaset.sh' ]

You can connect to it via Studio 3T like this: https://cln.sh/mFPIfi Or via mongodb://localhost:27017/?replicaSet=replicaset&readPreference=primaryPreferred

Tag summary

Content type

Image

Digest

sha256:5a9de64de

Size

236.2 MB

Last updated

almost 4 years ago

docker pull settlemint/mongo