compose.yaml 474 B

123456789101112131415161718
  1. services:
  2. mongo:
  3. image: mongo
  4. restart: always
  5. environment:
  6. MONGO_INITDB_ROOT_USERNAME: root
  7. MONGO_INITDB_ROOT_PASSWORD: example
  8. mongo-express:
  9. image: mongo-express
  10. restart: always
  11. ports:
  12. - 8081:8081
  13. environment:
  14. ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
  15. ME_CONFIG_BASICAUTH_ENABLED: true
  16. ME_CONFIG_BASICAUTH_USERNAME: mongoexpressuser
  17. ME_CONFIG_BASICAUTH_PASSWORD: mongoexpresspass