DEV Community

Clever Cottonmouth
Clever Cottonmouth

Posted on

3 2

docker-compose.yml file

version: "3.8"
services:
mongodb:
image: mongo
container_name: mongodb
ports:
- "27017:27017"
volumes:
- data:/data
environment:
- MONGO_INITDB_ROOT_USERNAME=rootuser
- MONGO_INITDB_ROOT_PASSWORD=rootpassword
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- "80:80"
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=rootuser
- ME_CONFIG_MONGODB_ADMINPASSWORD=rootpassword
- ME_CONFIG_MONGODB_HOST=mongodb
volumes:
data: {}
networks:
default:
name: mongodb_network

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay