16 lines
366 B
YAML
16 lines
366 B
YAML
# Run the following command to start mongodb container
|
|
# docker compose -f mongo-docker-compose.yml up -d
|
|
version: '3'
|
|
|
|
services:
|
|
mongo:
|
|
image: mongo:latest
|
|
container_name: cellar-mongo-db
|
|
ports:
|
|
- '27017:27017'
|
|
environment:
|
|
- MONGO_INITDB_ROOT_USERNAME=admin
|
|
- MONGO_INITDB_ROOT_PASSWORD=admin
|
|
volumes:
|
|
- ./db:/data/db
|