Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.3'
- services:
- redis:
- image: redis:4-alpine
- ports:
- - ${REDIS_PORT}:6379
- networks:
- - cs_processing
- consul:
- image: consul
- ports:
- - ${CONSUL_PORT}:${CONSUL_PORT}
- command: ["agent", "-dev", "-ui", "-http-port","${CONSUL_PORT}", "-client", "0.0.0.0"]
- networks:
- - cs_processing
- gateway:
- image: artifactory.setmachine.ru:5000/gateway-lp
- environment:
- TZ: "Europe/Moscow"
- depends_on:
- - consul
- ports:
- - 8090:8090
- networks:
- - cs_processing
- elasticsearch:
- build:
- context: elasticsearch/
- args:
- ELK_VERSION: $ELK_VERSION
- volumes:
- - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ports:
- - "9200:9200"
- - "9300:9300"
- environment:
- ES_JAVA_OPTS: "-Xmx256m -Xms256m"
- networks:
- - cs_processing
- logstash:
- build:
- context: logstash/
- args:
- ELK_VERSION: $ELK_VERSION
- volumes:
- - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
- ports:
- - "5000:5000"
- - "9600:9600"
- environment:
- LS_JAVA_OPTS: "-Xmx256m -Xms256m"
- networks:
- - cs_processing
- depends_on:
- - elasticsearch
- kibana:
- build:
- context: kibana/
- args:
- ELK_VERSION: $ELK_VERSION
- volumes:
- - ./kibana/config/:/usr/share/kibana/config:ro
- ports:
- - "5601:5601"
- networks:
- - cs_processing
- depends_on:
- - elasticsearch
- processing:
- environment:
- REDIS_TTL_RESERVED: 120
- CONSUL_HOST: ${CONSUL_HOST}
- CONSUL_PORT: ${CONSUL_PORT}
- LOGSTASH_HOST: logstash
- LOGSTASH_PORT: 5000
- TZ: "Europe/Moscow"
- build:
- context: ../processing
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/processing.jar"]
- depends_on:
- - consul
- ports:
- - 8787:8787
- networks:
- - cs_processing
- networks:
- cs_processing:
- driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement