mirror of
https://github.com/valitydev/fraudbusters-compose.git
synced 2024-11-06 08:25:19 +00:00
265 lines
11 KiB
YAML
265 lines
11 KiB
YAML
---
|
|
version: '2'
|
|
services:
|
|
zookeeper:
|
|
image: confluentinc/cp-zookeeper:5.0.1
|
|
hostname: zookeeper
|
|
container_name: zookeeper
|
|
environment:
|
|
ZOOKEEPER_CLIENT_PORT: 2181
|
|
ZOOKEEPER_TICK_TIME: 2000
|
|
volumes:
|
|
- /tmp/docker/zookeeper/data:/var/lib/zookeeper/data
|
|
- /tmp/docker/zookeeper/logs:/var/lib/zookeeper/log
|
|
|
|
broker:
|
|
image: confluentinc/cp-enterprise-kafka:5.0.1
|
|
hostname: broker
|
|
container_name: broker
|
|
depends_on:
|
|
- zookeeper
|
|
environment:
|
|
KAFKA_BROKER_ID: 1
|
|
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT_HOST://broker:29092,PLAINTEXT://broker:9092
|
|
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
|
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
|
|
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:9092
|
|
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
|
|
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
|
|
CONFLUENT_METRICS_ENABLE: 'true'
|
|
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
|
|
ports:
|
|
- 9092:9092
|
|
- 29092:29092
|
|
volumes:
|
|
- /tmp/docker/kafka2/data:/var/lib/kafka/data
|
|
|
|
kafka-setup:
|
|
image: confluentinc/cp-kafka:5.1.1
|
|
hostname: kafka-setup
|
|
container_name: kafka-setup
|
|
depends_on:
|
|
- broker
|
|
command: "bash -c 'echo Waiting for Kafka to be ready... && \
|
|
cub kafka-ready -b broker:9092 1 60 && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic wb-list-command && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic wb-list-event-sink && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic result && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic p2p_result && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic fraud_payment && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic payment_event && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic refund_event && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic chargeback_event && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic unknown_initiating_entity && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic template && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic template_p2p && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic template_reference && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic template_p2p_reference && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic group_list && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic group_p2p_list && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic group_reference && \
|
|
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --topic group_p2p_reference && \
|
|
echo Waiting 60 seconds for Connect to be ready... && \
|
|
sleep 60'"
|
|
|
|
riak:
|
|
image: basho/riak-kv
|
|
hostname: riak
|
|
container_name: riak
|
|
ports:
|
|
- "8087:8087"
|
|
- "8098:8098"
|
|
environment:
|
|
- CLUSTER_NAME=riakts
|
|
- WAIT_FOR_ERLANG=500
|
|
labels:
|
|
- "com.basho.riak.cluster.name=riakts"
|
|
volumes:
|
|
- /tmp/docker/riak/data:/etc/riak/schemas
|
|
|
|
clickhouse:
|
|
image: yandex/clickhouse-server:19.17.6.36
|
|
hostname: clickhouse
|
|
container_name: clickhouse
|
|
environment:
|
|
CLICKHOUSE_USER: user
|
|
CLICKHOUSE_PASSWORD: password
|
|
ports:
|
|
- 9000:9000
|
|
- 8123:8123
|
|
volumes:
|
|
- ./clickhouse/data:/var/lib/clickhouse
|
|
- ./clickhouse/docker-entrypoint-initdb.d/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
|
|
|
|
grafana:
|
|
image: grafana/grafana:5.1.0
|
|
hostname: grafana
|
|
container_name: grafana
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
GF_INSTALL_PLUGINS: "grafana-piechart-panel,vertamedia-clickhouse-datasource"
|
|
GF_SECURITY_ADMIN_USER: "admin"
|
|
GF_SECURITY_ADMIN_PASSWORD: "admin"
|
|
volumes:
|
|
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards
|
|
- ./grafana/datasources:/etc/grafana/provisioning/datasources
|
|
|
|
postgres-columbus:
|
|
image: rbkmoney/postgres-geodata:0eb52256576ec22f89fadc3e7fe505b692e838a3
|
|
hostname: postgres-columbus
|
|
container_name: postgres-columbus
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: columbus
|
|
entrypoint:
|
|
- /docker-entrypoint.sh
|
|
- postgres
|
|
ports:
|
|
- 5432:5432
|
|
|
|
columbus:
|
|
image: rbkmoney/columbus:88be0cbccde15c7d4c88403d495f8d564f826160
|
|
hostname: columbus
|
|
container_name: columbus
|
|
environment:
|
|
spring.datasource.url: "jdbc:postgresql://postgres-columbus:5432/columbus"
|
|
logging.level.com.rbkmoney.woody: "ERROR"
|
|
depends_on:
|
|
- postgres-columbus
|
|
ports:
|
|
- 8990:8022
|
|
|
|
wblist:
|
|
image: rbkmoney/wb-list-manager:9676d131d4b6c2d90c0a230c173c07f1de30f298
|
|
hostname: wblist
|
|
container_name: wblist
|
|
environment:
|
|
kafka.bootstrap.servers: "broker:9092"
|
|
riak.address: riak
|
|
riak.port: 8087
|
|
management.metrics.export.statsd.enabled: "false"
|
|
logging.level.com.rbkmoney.woody: "ERROR"
|
|
kafka.wblist.topic.command: "wb-list-command"
|
|
kafka.wblist.topic.event.sink: "wb-list-event-sink"
|
|
depends_on:
|
|
- riak
|
|
- broker
|
|
ports:
|
|
- 8991:8022
|
|
|
|
fraudbusters:
|
|
image: rbkmoney/fraudbusters:9698d6d519f5d2344bd7486dfe7af31d089cd652-epic
|
|
hostname: fraudbusters
|
|
container_name: fraudbusters
|
|
environment:
|
|
management.security.enabled: 'false'
|
|
kafka.ssl.enable: 'false'
|
|
kafka.bootstrap.servers: "broker:9092"
|
|
geo.ip.service.url: "http://columbus:8022/repo"
|
|
wb.list.service.url: "http://wblist:8022/v1/wb_list"
|
|
clickhouse.db.url: "jdbc:clickhouse://clickhouse:8123/default"
|
|
logging.config: "tmp/logback-test.xml"
|
|
card-token-pool.filePath: "card-tokens"
|
|
clickhouse.db.user: 'user'
|
|
clickhouse.db.password: 'password'
|
|
fraud.management.url: 'fb-management:8080'
|
|
result.full.check.enabled: 'false'
|
|
spring.profiles.active: 'full-prod'
|
|
depends_on:
|
|
- clickhouse
|
|
- broker
|
|
- columbus
|
|
- wblist
|
|
- kafka-setup
|
|
ports:
|
|
- 8999:8022
|
|
- 8111:8089
|
|
volumes:
|
|
- ./log-java:/opt/fraudbusters/tmp
|
|
- ./card-tokens:/opt/fraudbusters/card-tokens
|
|
|
|
postgres-fb:
|
|
container_name: postgres_container
|
|
hostname: postgres-fb
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: fraudbusters
|
|
PGDATA: /data/postgres
|
|
ports:
|
|
- 6432:5432
|
|
volumes:
|
|
- ./postgres/data/3:/data/postgres
|
|
restart: unless-stopped
|
|
|
|
fb-management:
|
|
image: dr2.rbkmoney.com/rbkmoney/fraudbusters-management:e83f84b1e9dee2fec1b30f4b287cc8e702eb157a
|
|
hostname: fb-management
|
|
container_name: fb-management
|
|
environment:
|
|
kafka.bootstrap.servers: "broker:9092"
|
|
kafka.wblist.topic.command: "wb-list-command"
|
|
kafka.wblist.topic.event.sink: "wb-list-event-sink"
|
|
kafka.fraudbusters.template: "template"
|
|
kafka.fraudbusters.reference: "template_reference"
|
|
spring.datasource.url: "jdbc:postgresql://postgres-fb:5432/fraudbusters"
|
|
logging.config: "./tmp/logback-test.xml"
|
|
management.metrics.binders.jvm.enabled: 'false'
|
|
service.payment.url: 'http://fraudbusters:8022/fraud_payment/v1/'
|
|
service.historical.url: 'http://fraudbusters:8022/historical_data/v1/'
|
|
spring.profiles.active: 'debug'
|
|
keycloak.enabled: "true"
|
|
keycloak.realm: "fraudbusters-realm"
|
|
keycloak.resource: "fraudbusters-app"
|
|
keycloak.auth-server-url: "http://keyclock:8080/auth"
|
|
cors.allowed-origins: "*"
|
|
ports:
|
|
- 8085:8080
|
|
depends_on:
|
|
- fraudbusters
|
|
- broker
|
|
- wblist
|
|
- postgres-fb
|
|
- kafka-setup
|
|
volumes:
|
|
- ./log-java:/opt/fraudbusters-management/tmp
|
|
|
|
fraudbusters-ui:
|
|
image: dr2.rbkmoney.com/rbkmoney/fraudbusters-ui:052ef663e0c86d1521ef213b04355da58b0e5cc9
|
|
hostname: fraudbusters-ui
|
|
container_name: fraudbusters-ui
|
|
ports:
|
|
- 8989:8080
|
|
depends_on:
|
|
- fb-management
|
|
volumes:
|
|
- ./fraudbusters-ui/nginx.conf:/etc/nginx/vhosts.d/fraudbusters-ui.conf
|
|
- ./fraudbusters-ui/appConfig.json:/usr/share/nginx/html/assets/appConfig.json
|
|
- ./fraudbusters-ui/authConfig.json:/usr/share/nginx/html/assets/authConfig.json
|
|
|
|
keyclock:
|
|
image: dr2.rbkmoney.com/rbkmoney/keycloak:8d6a2ad2c2afef8201a8801739d17379bdcc0d69
|
|
hostname: keyclock
|
|
container_name: keyclock
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
KEYCLOAK_USER: "admin"
|
|
KEYCLOAK_PASSWORD: "admin"
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|
|
driver_opts:
|
|
com.docker.network.enable_ipv6: "true"
|
|
com.docker.network.bridge.enable_ip_masquerade: "true"
|
|
|
|
volumes:
|
|
mi2: {}
|