Advertisement
aironman

docker-compose.yml

Jul 30th, 2019
187
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.7'
  2. services:
  3. demo-quartz-btc:
  4. image: aironman/demo-quartz:0.0.2-SNAPSHOT
  5. build:
  6. context: .
  7. dockerfile: Dockerfile
  8. args:
  9. CRYPT_TYPE: btc
  10. links:
  11. - "eureka-server"
  12. - "zookeeper"
  13. - "kafka"
  14. deploy:
  15. replicas: 5
  16. resources:
  17. limits:
  18. cpus: "0.5"
  19. memory: 512M
  20. restart_policy:
  21. condition: on-failure
  22.  
  23. demo-quartz-eth:
  24. image: aironman/demo-quartz:0.0.2-SNAPSHOT
  25. build:
  26. context: .
  27. dockerfile: Dockerfile
  28. args:
  29. CRYPT_TYPE: eth
  30. links:
  31. - "eureka-server"
  32. - "zookeeper"
  33. - "kafka"
  34. deploy:
  35. replicas: 5
  36. resources:
  37. limits:
  38. cpus: "0.5"
  39. memory: 512M
  40. restart_policy:
  41. condition: on-failure
  42.  
  43. zookeeper:
  44. image: confluentinc/cp-zookeeper:5.0.0
  45. hostname: zookeeper
  46. container_name: zookeeper
  47. ports:
  48. - "2181:2181"
  49. environment:
  50. ZOOKEEPER_CLIENT_PORT: 2181
  51. ZOOKEEPER_TICK_TIME: 2000
  52.  
  53. kafka:
  54. image: confluentinc/cp-enterprise-kafka:5.0.0
  55. hostname: kafka
  56. container_name: kafka
  57. depends_on:
  58. - zookeeper
  59. ports:
  60. - "9092:9092"
  61. - "29092:29092"
  62. environment:
  63. KAFKA_BROKER_ID: 1
  64. KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
  65. KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
  66. KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
  67. KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
  68. KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
  69. KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
  70. CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka:9092
  71. CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
  72. CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
  73. CONFLUENT_METRICS_ENABLE: 'true'
  74. CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
  75.  
  76. eureka-server:
  77. image: springcloud/eureka
  78. hostname: eureka-server
  79. ports:
  80. - "8761:8761"
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement