Advertisement
aironman

docker-compose.yml

May 15th, 2018
172
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.6'
  2. services:
  3. demo-kafka-elastic:
  4. image: aironman/demo-kafka-elastic:0.0.1-SNAPSHOT
  5. deploy:
  6. replicas: 5
  7. resources:
  8. limits:
  9. cpus: "0.5"
  10. memory: 512M
  11. restart_policy:
  12. condition: on-failure
  13.  
  14. demo-quartz:
  15. image: aironman/demo-quartz:0.0.1-SNAPSHOT
  16. deploy:
  17. replicas: 5
  18. resources:
  19. limits:
  20. cpus: "0.5"
  21. memory: 512M
  22. restart_policy:
  23. condition: on-failure
  24.  
  25. zookeeper:
  26. image: wurstmeister/zookeeper
  27. ports:
  28. - "2181:2181"
  29.  
  30. kafka:
  31. image: wurstmeister/kafka
  32. ports:
  33. - "9092:9092"
  34. environment:
  35. KAFKA_BROKER_ID: 1
  36. KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  37. KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
  38. KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
  39. volumes:
  40. - /var/run/docker.sock:/var/run/docker.sock
  41.  
  42. elastic:
  43. image: elasticsearch:2.4.6-alpine
  44. container_name: elastic
  45. environment:
  46. - cluster.name=elastic-cluster
  47. - http.host=0.0.0.0
  48. - transport.host=0.0.0.0
  49. - discovery.type=single-node
  50. - xpack.security.enabled=false
  51. - client.transport.sniff=false
  52. - client.transport.ignore_cluster_name= true
  53. volumes:
  54. - ./esdata/:/usr/share/elasticsearch/data/
  55. ports:
  56. - "9200:9200"
  57. - "9700:9700"
  58. - "9300:9300"
  59.  
  60. kibana:
  61. image: seeruk/docker-kibana-sense:4.5
  62. ports:
  63. - "5601:5601"
  64. environment:
  65. - ELASTICSEARCH_URL=http://elastic:9200
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement