Guest User

Untitled

a guest
Jun 3rd, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. version: '2'
  2. services:
  3. zookeeper:
  4. image: wurstmeister/zookeeper
  5. container_name: zookeeper
  6. ports:
  7. - "2181:2181"
  8. kafka:
  9. image: wurstmeister/kafka
  10. container_name: kafka
  11. ports:
  12. - "9092:9092"
  13. environment:
  14. KAFKA_ADVERTISED_HOST_NAME: 10.231.244.2
  15. # KAFKA_ADVERTISED_PORT: 9092
  16. KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  17. volumes:
  18. - /var/run/docker.sock:/var/run/docker.sock
  19. mongodb:
  20. image: mongo:latest
  21. container_name: mongodb
  22. environment:
  23. - 'MONGO_INITDB_ROOT_USERNAME=mongo'
  24. - 'MONGO_INITDB_ROOT_PASSWORD=1qaz2wsx'
  25. # volumes:
  26. # - 'mongodb-data:/data/db'
  27. ports:
  28. - '27017:27017'
  29. command: mongod --smallfiles
  30. mongo-express:
  31. container_name: mongo-express
  32. links:
  33. - 'mongodb:mongo'
  34. ports:
  35. - '8081:8081'
  36. environment:
  37. - 'ME_CONFIG_OPTIONS_EDITORTHEME=ambiance'
  38. - 'ME_CONFIG_BASICAUTH_USERNAME=mongo'
  39. - 'ME_CONFIG_BASICAUTH_PASSWORD=1qaz2wsx'
  40. - 'ME_CONFIG_MONGODB_ADMINUSERNAME=mongo'
  41. - 'ME_CONFIG_MONGODB_ADMINPASSWORD=1qaz2wsx'
  42. image: mongo-express
Add Comment
Please, Sign In to add comment