docker-compose.yml file
Clever Cottonmouth
Posted on March 29, 2022
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
Posted on March 29, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024
November 30, 2024