A customized mongo image based on official's.
It may take 30 seconds for ready.
docker-compose.ymlversion: '3'
networks:
netmongo:
services:
mongo:
networks:
- netmongo
container_name: mongo
hostname: mongo
image: icmdb/mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=MongoDBPassw0rd
ports:
- 27017:27017
volumes:
- ./mongodata/db:/data/db
restart: always
mongo-express:
networks:
- netmongo
container_name: mongo-express
hostname: mongo-express
image: mongo-express
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=MongoDBPassw0rd
restart: always
Content type
Image
Digest
Size
160.1 MB
Last updated
about 7 years ago
docker pull icmdb/mongo