Skip to content

Instantly share code, notes, and snippets.

@haplabs
Last active May 20, 2021 21:47
Show Gist options
  • Save haplabs/3a5e93867bf3275ee0a634128ebe2908 to your computer and use it in GitHub Desktop.
Save haplabs/3a5e93867bf3275ee0a634128ebe2908 to your computer and use it in GitHub Desktop.
Mongo docker-compose mongo 4.2.0 - just example - Mongo and express
version: '3.1'
services:
mongo:
image: mongo:4.2.0
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment