stack.yml 517 B

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