/
docker-compose-postgres.yml
53 lines (44 loc) · 1.37 KB
/
docker-compose-postgres.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.4"
# Ubuntu , set this for redpanda to start
# https://sort.veritas.com/public/documents/HSO/2.0/linux/productguides/html/hfo_admin_ubuntu/ch04s03.htm
# Clickhouse Table Schema
# create table test(id int, message String) ENGINE=MergeTree() PRIMARY KEY id;
services:
postgres:
extends:
file: postgres-service.yml
service: postgres
clickhouse:
extends:
file: clickhouse-service.yml
service: clickhouse
clickhouse-sink-connector-lt:
extends:
file: clickhouse-sink-connector-lt-service.yml
service: clickhouse-sink-connector-lt
depends_on:
- clickhouse
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
JAVA_OPTS: >
-Xmx5G
-Xms128m
volumes:
- ./config_postgres.yml:/config.yml
### MONITORING ####
prometheus:
extends:
file: prometheus-service.yml
service: prometheus
grafana:
extends:
file: grafana-service.yml
service: grafana
volumes:
- ./config/grafana/config/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
- ./config/grafana/config/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./config/grafana/config/altinity_sink_connector.json:/var/lib/grafana/dashboards/altinity_sink_connector.json
depends_on:
- prometheus
## END OF MONITORING ###