Advertisement
GeorgiLukanov87

docker compose yaml mongodb

Oct 27th, 2023
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.35 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4.   mongo-express:
  5.     image: mongo:latest
  6.     restart: always
  7.     container-name: mognodb
  8.     ports:
  9.      - 27017:27017
  10.     environment:
  11.       ME_CONFIG_MONGODB_ADMINUSERNAME: root
  12.       ME_CONFIG_MONGODB_ADMINPASSWORD: example
  13.       ME_CONFIG_MOGODB_AUTH_DATABASE: "user-list"
  14.     volume:
  15.         - ${PWD}/data:/etc/mongo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement