Advertisement
fedorm

Untitled

Feb 26th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. version: '3.3'
  2.  
  3. services:
  4. redis:
  5. image: redis:4-alpine
  6. ports:
  7. - ${REDIS_PORT}:6379
  8. networks:
  9. - cs_processing
  10.  
  11. consul:
  12. image: consul
  13. ports:
  14. - ${CONSUL_PORT}:${CONSUL_PORT}
  15. command: ["agent", "-dev", "-ui", "-http-port","${CONSUL_PORT}", "-client", "0.0.0.0"]
  16. networks:
  17. - cs_processing
  18.  
  19. gateway:
  20. image: artifactory.setmachine.ru:5000/gateway-lp
  21. environment:
  22. TZ: "Europe/Moscow"
  23. depends_on:
  24. - consul
  25. ports:
  26. - 8090:8090
  27. networks:
  28. - cs_processing
  29.  
  30. elasticsearch:
  31. build:
  32. context: elasticsearch/
  33. args:
  34. ELK_VERSION: $ELK_VERSION
  35. volumes:
  36. - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
  37. ports:
  38. - "9200:9200"
  39. - "9300:9300"
  40. environment:
  41. ES_JAVA_OPTS: "-Xmx256m -Xms256m"
  42. networks:
  43. - cs_processing
  44.  
  45. logstash:
  46. build:
  47. context: logstash/
  48. args:
  49. ELK_VERSION: $ELK_VERSION
  50. volumes:
  51. - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
  52. - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
  53. ports:
  54. - "5000:5000"
  55. - "9600:9600"
  56. environment:
  57. LS_JAVA_OPTS: "-Xmx256m -Xms256m"
  58. networks:
  59. - cs_processing
  60. depends_on:
  61. - elasticsearch
  62.  
  63.  
  64. kibana:
  65. build:
  66. context: kibana/
  67. args:
  68. ELK_VERSION: $ELK_VERSION
  69. volumes:
  70. - ./kibana/config/:/usr/share/kibana/config:ro
  71. ports:
  72. - "5601:5601"
  73. networks:
  74. - cs_processing
  75. depends_on:
  76. - elasticsearch
  77.  
  78. processing:
  79. environment:
  80. REDIS_TTL_RESERVED: 120
  81. CONSUL_HOST: ${CONSUL_HOST}
  82. CONSUL_PORT: ${CONSUL_PORT}
  83. LOGSTASH_HOST: logstash
  84. LOGSTASH_PORT: 5000
  85. TZ: "Europe/Moscow"
  86. build:
  87. context: ../processing
  88. command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/processing.jar"]
  89. depends_on:
  90. - consul
  91. ports:
  92. - 8787:8787
  93. networks:
  94. - cs_processing
  95.  
  96. networks:
  97. cs_processing:
  98. driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement