Skip to content

Instantly share code, notes, and snippets.

@justinpage
Created December 12, 2021 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinpage/17befc2db9096a3d41f6f9d82ab967de to your computer and use it in GitHub Desktop.
Save justinpage/17befc2db9096a3d41f6f9d82ab967de to your computer and use it in GitHub Desktop.
version: '3.7'
services:
mongo:
image: mongo:5.0.5
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=secret
volumes:
- mongo_data:/data/db
- mongo_config:/data/configdb
mongo-express:
image: mongo-express:0.54.0
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=secret
- ME_CONFIG_MONGODB_URL=mongodb://root:secret@mongo:27017/
ports:
- "8081:8081"
restart: always
volumes:
mongo_data:
mongo_config:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment