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
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)