Created
October 18, 2019 11:40
-
-
Save ikbelkirasan/3719ee14420bdf34b7e4e4521fc87f3a to your computer and use it in GitHub Desktop.
docker-compose presets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.0' | |
services: | |
mongo: | |
image: mongo | |
restart: unless-stopped | |
ports: | |
- 27017:27017 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: example | |
volumes: | |
- ./mongodb_data:/data/db | |
mongo-express: | |
image: mongo-express | |
restart: unless-stopped | |
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