mirror of
https://github.com/valitydev/fraudbusters-compose.git
synced 2024-11-06 08:25:19 +00:00
Add new graf and fix user for CH
This commit is contained in:
parent
ea3769c56b
commit
8317ddc73e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/postgres/
|
/postgres/
|
||||||
/clickhouse/data/
|
/clickhouse/data/
|
||||||
|
/.idea/
|
||||||
|
@ -1,6 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
CLICKHOUSE_USER="${CLICKHOUSE_USER:-user}";
|
||||||
|
CLICKHOUSE_PASSWORD="${CLICKHOUSE_PASSWORD:-password}";
|
||||||
|
|
||||||
|
cat <<EOT >> /etc/clickhouse-server/users.d/user.xml
|
||||||
|
<yandex>
|
||||||
|
<!-- Docs: <https://clickhouse.tech/docs/en/operations/settings/settings_users/> -->
|
||||||
|
<users>
|
||||||
|
<${CLICKHOUSE_USER}>
|
||||||
|
<profile>default</profile>
|
||||||
|
<networks>
|
||||||
|
<ip>::/0</ip>
|
||||||
|
</networks>
|
||||||
|
<password>${CLICKHOUSE_PASSWORD}</password>
|
||||||
|
<quota>default</quota>
|
||||||
|
</${CLICKHOUSE_USER}>
|
||||||
|
</users>
|
||||||
|
</yandex>
|
||||||
|
EOT
|
||||||
|
|
||||||
clickhouse client -n <<-EOSQL
|
clickhouse client -n <<-EOSQL
|
||||||
CREATE DATABASE IF NOT EXISTS fraud;
|
CREATE DATABASE IF NOT EXISTS fraud;
|
||||||
|
|
||||||
|
@ -79,6 +79,9 @@ services:
|
|||||||
image: yandex/clickhouse-server:19.17
|
image: yandex/clickhouse-server:19.17
|
||||||
hostname: clickhouse
|
hostname: clickhouse
|
||||||
container_name: clickhouse
|
container_name: clickhouse
|
||||||
|
environment:
|
||||||
|
CLICKHOUSE_USER: user
|
||||||
|
CLICKHOUSE_PASSWORD: password
|
||||||
ports:
|
ports:
|
||||||
- 9000:9000
|
- 9000:9000
|
||||||
- 8123:8123
|
- 8123:8123
|
||||||
@ -145,7 +148,7 @@ services:
|
|||||||
- 8991:8022
|
- 8991:8022
|
||||||
|
|
||||||
fraudbusters:
|
fraudbusters:
|
||||||
image: dr2.rbkmoney.com/rbkmoney/fraudbusters:e4b2f9e830890a8956d17b6a0599a4ba2ebb1c1c
|
image: dr2.rbkmoney.com/rbkmoney/fraudbusters:53d558563fa72966ad5a8b40782b0cebc1defd9f
|
||||||
hostname: fraudbusters
|
hostname: fraudbusters
|
||||||
container_name: fraudbusters
|
container_name: fraudbusters
|
||||||
environment:
|
environment:
|
||||||
@ -155,11 +158,13 @@ services:
|
|||||||
clickhouse.db.url: "jdbc:clickhouse://clickhouse:8123/default"
|
clickhouse.db.url: "jdbc:clickhouse://clickhouse:8123/default"
|
||||||
spring.profiles.active: "full-prod"
|
spring.profiles.active: "full-prod"
|
||||||
logging.config: "tmp/logback-test.xml"
|
logging.config: "tmp/logback-test.xml"
|
||||||
|
clickhouse.db.user: ''
|
||||||
|
clickhouse.db.password: ''
|
||||||
depends_on:
|
depends_on:
|
||||||
- clickhouse
|
- clickhouse
|
||||||
- broker
|
- broker
|
||||||
- columbus
|
# - columbus
|
||||||
- wblist
|
# - wblist
|
||||||
- kafka-setup
|
- kafka-setup
|
||||||
ports:
|
ports:
|
||||||
- 8999:8022
|
- 8999:8022
|
||||||
|
1119
grafana/dashboards/jsons/fraud data tables.json
Normal file
1119
grafana/dashboards/jsons/fraud data tables.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user