compose.yaml 502 B

123456789101112131415161718192021
  1. # Use root/example as user/password credentials
  2. services:
  3. mongo:
  4. image: mongo
  5. restart: always
  6. environment:
  7. MONGO_INITDB_ROOT_USERNAME: root
  8. MONGO_INITDB_ROOT_PASSWORD: example
  9. mongo-express:
  10. image: mongo-express
  11. restart: always
  12. ports:
  13. - 8081:8081
  14. environment:
  15. ME_CONFIG_MONGODB_ADMINUSERNAME: root
  16. ME_CONFIG_MONGODB_ADMINPASSWORD: example
  17. ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
  18. ME_CONFIG_BASICAUTH: false