Advertisement
Guest User

Untitled

a guest
Sep 4th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. # this is our kafka cluster.
  5. kafka-cluster:
  6. image: landoop/fast-data-dev:latest
  7. environment:
  8. ADV_HOST: 127.0.0.1 # Change to 192.168.99.100 if using Docker Toolbox
  9. RUNTESTS: 0 # Disable Running tests so the cluster starts faster
  10. ports:
  11. - 2181:2181 # Zookeeper
  12. - 3030:3030 # Landoop UI
  13. - 8081-8083:8081-8083 # REST Proxy, Schema Registry, Kafka Connect ports
  14. - 9581-9585:9581-9585 # JMX Ports
  15. - 9092:9092 # Kafka Broker
  16.  
  17. # we will use elasticsearch as one of our sinks.
  18. # This configuration allows you to start elasticsearch
  19. elasticsearch:
  20. image: itzg/elasticsearch:2.4.3
  21. environment:
  22. PLUGINS: appbaseio/dejavu
  23. OPTS: -Dindex.number_of_shards=1 -Dindex.number_of_replicas=0
  24. ports:
  25. - "9200:9200"
  26.  
  27. # we will use postgres as one of our sinks.
  28. # This configuration allows you to start postgres
  29. postgres:
  30. image: postgres:9.5-alpine
  31. environment:
  32. POSTGRES_USER: postgres # define credentials
  33. POSTGRES_PASSWORD: postgres # define credentials
  34. POSTGRES_DB: postgres # define database
  35. ports:
  36. - 5432:5432 # Postgres port
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement