Skip to content

Instantly share code, notes, and snippets.

@ramosmerino
Created September 22, 2025 03:29
Show Gist options
  • Select an option

  • Save ramosmerino/cd8e6ffcae3419709ccb1a2b8e40918b to your computer and use it in GitHub Desktop.

Select an option

Save ramosmerino/cd8e6ffcae3419709ccb1a2b8e40918b to your computer and use it in GitHub Desktop.
Mongo docker-compose
version: '3.8'
services:
mongodb:
image: mongodb/mongodb-community-server:6.0-ubi8
environment:
- MONGO_INITDB_ROOT_USERNAME=user
- MONGO_INITDB_ROOT_PASSWORD=pass
volumes:
- type: bind
source: ./data
target: /data/db
ports:
- "27017:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment