Skip to content

Instantly share code, notes, and snippets.

View mdmen's full-sized avatar

Dmitry Menov mdmen

View GitHub Profile
@mdmen
mdmen / README.md
Last active October 4, 2023 16:25
Setup MongoDB using Docker Compose as single instance (node) replica set

Don't use in production!!! For development purpose only

  1. Create compose.yml file with the following content:
services:
  mongodb:
    image: mongo
    container_name: mongodb
    volumes:
      - mongodb:/data/db