-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.db.old.yml
148 lines (139 loc) · 4.78 KB
/
docker-compose.db.old.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: "3.7"
services:
etl:
image: geometrylabs/iconetl:${ICON_ETL_TAG:-latest}
command: [
"stream",
# "-s", "${START_BLOCK:-29822968}",
# "-s", "${START_BLOCK:-29881851}",
# "-s", "${START_BLOCK:-40926490}",
# "-s", "${START_BLOCK:-31017953}", # updated
"-s", "${START_BLOCK:-30553699}", # created
"-o", "kafka:9092",
"--period-seconds", "1",
"--provider-uri", "https://api.icon.geometry.io/api/v3",
# "--provider-uri", "https://berlin.net.solidwallet.io/api/v3",
# "-b", "100",
# "-B", "100",
"--kafka-schema-registry-url", "http://schemaregistry:8081",
"--kafka-use-schema-registry", "true",
]
restart: on-failure
depends_on:
- kafka
############
# Database #
############
postgres:
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
ports:
- "5432:5432"
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
ports:
- "${PGADMIN_PORT:-5050}:80"
#########
# Kafka #
#########
zookeeper:
image: confluentinc/cp-zookeeper:${CP_ZOOKEEPER_TAG:-latest}
hostname: zookeeper
environment:
zk_id: "1"
ZOOKEEPER_CLIENT_PORT: 2181
kafka:
image: confluentinc/cp-enterprise-kafka:${CP_ENTERPRISE_KAFKA_TAG:-latest}
hostname: kafka
depends_on:
- zookeeper
ports:
- "29092:29092"
environment:
KAFKA_BROKER_ID: 0
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_BROKER_RACK: "r1"
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_SCHEMA_REGISTRY_URL: "schemaregistry:8081"
KAFKA_CONFLUENT_SCHEMA_REGISTRY_URL: "schemaregistry:8081"
KAFKA_JMX_PORT: 9991
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_CONFLUENT_SUPPORT_CUSTOMER_ID: anonymous
KAFKA_CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka:9092
KAFKA_CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CONFLUENT_METRICS_ENABLE: 'true'
KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
schemaregistry:
image: confluentinc/cp-schema-registry:${CP_SCHEMA_REGISTRY_TAG:-latest}
hostname: schemaregistry
depends_on:
- zookeeper
- kafka
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schemaregistry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'PLAINTEXT://kafka:9092'
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN: '*'
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS: 'GET,POST,PUT,OPTIONS'
SCHEMA_REGISTRY_LISTENERS: "http://0.0.0.0:8081"
rest-proxy:
image: confluentinc/cp-kafka-rest:${CP_KAFKA_REST_TAG:-latest}
hostname: rest-proxy
depends_on:
- kafka
- schemaregistry
environment:
KAFKA_REST_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_REST_BOOTSTRAP_SERVERS: 'kafka:9092'
KAFKA_REST_LISTENERS: 'http://0.0.0.0:8084'
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://schemaregistry:8081'
KAFKA_REST_HOST_NAME: 'rest-proxy'
ksqldb-server:
image: confluentinc/cp-ksql-server:5.4.6
hostname: ksqldb-server
container_name: ksqldb-server
depends_on:
- kafka
- schemaregistry
ports:
- "8088:8088"
environment:
KSQL_LISTENERS: "http://0.0.0.0:8088"
KSQL_BOOTSTRAP_SERVERS: "kafka:9092"
KSQL_KSQL_SCHEMA_REGISTRY_URL: "http://schemaregistry:8081"
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
control-center:
image: confluentinc/cp-enterprise-control-center:5.5.1
hostname: control-center
depends_on:
- zookeeper
- kafka
ports:
- "9021:9021"
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'kafka:9092'
CONTROL_CENTER_ZOOKEEPER_CONNECT: 'zookeeper:2181'
CONTROL_CENTER_REPLICATION_FACTOR: 1
CONTROL_CENTER_SCHEMA_REGISTRY_URL: 'schemaregistry:8081'
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
PORT: 9021
networks:
- default
restart: always