Skip to content

Instantly share code, notes, and snippets.

@pawiromitchel
Created February 23, 2022 14:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawiromitchel/c58b699dc3b9e0410783a015f21f0455 to your computer and use it in GitHub Desktop.
Save pawiromitchel/c58b699dc3b9e0410783a015f21f0455 to your computer and use it in GitHub Desktop.
[mongodb docker image] #docker #mongodb
# https://hub.docker.com/_/mongo
version: '3.1'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: suchanicepassword
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: suchanicepassword
ME_CONFIG_MONGODB_URL: mongodb://root:suchanicepassword@mongo:27017/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment