-
-
Notifications
You must be signed in to change notification settings - Fork 867
Expand file tree
/
Copy pathdocker-compose-postgres.yaml
More file actions
88 lines (83 loc) · 2.37 KB
/
docker-compose-postgres.yaml
File metadata and controls
88 lines (83 loc) · 2.37 KB
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
services:
kafka:
image: quay.io/debezium/kafka:${DEBEZIUM_VERSION}
ports:
- 9092:9092
- 9093:9093
environment:
- CLUSTER_ID=oh-sxaDRTcyAr6pFRbXyzA
- NODE_ID=1
- NODE_ROLE=combined
- KAFKA_CONTROLLER_QUORUM_VOTERS=1@kafka:9093
- KAFKA_LISTENERS=PLAINTEXT://kafka:9092,CONTROLLER://kafka:9093
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
# For local debugging of Main
# - ADVERTISED_HOST_NAME=192.168.1.3
postgres:
image: debezium-examples/kstreams-live-update-postgres:${DEBEZIUM_VERSION}
build:
context: postgres-db
ports:
- 5432:5432
healthcheck:
test: "pg_isready -U postgresuser -d inventory"
interval: 2s
timeout: 20s
retries: 10
environment:
- POSTGRES_USER=postgresuser
- POSTGRES_PASSWORD=postgrespw
- POSTGRES_DB=inventory
connect:
image: debezium-examples/kstreams-live-update-connect-es:${DEBEZIUM_VERSION}
build:
context: debezium-es
ports:
- 8083:8083
- 5005:5005
links:
- kafka
- postgres
- elastic
environment:
- BOOTSTRAP_SERVERS=kafka:9092
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=my_source_connect_configs
- OFFSET_STORAGE_TOPIC=my_source_connect_offsets
- STATUS_STORAGE_TOPIC=my_connect_statuses
- KAFKA_DEBUG=true
- DEBUG_SUSPEND_FLAG=n
- JAVA_DEBUG_PORT=0.0.0.0:5005
event-source:
image: debezium-examples/kstreams-live-update-event-source:${DEBEZIUM_VERSION}
build:
context: event-source
dockerfile: src/main/docker/Dockerfile.jvm
environment:
- DATABASE_SERVER=postgres
- JAVA_MAIN_CLASS=io.debezium.examples.kstreams.liveupdate.eventsource.Main
depends_on:
postgres:
condition: service_healthy
aggregator:
image: debezium-examples/kstreams-live-update-aggregator:${DEBEZIUM_VERSION}
build:
context: aggregator
dockerfile: src/main/docker/Dockerfile.jvm
ports:
- 8079:8079
environment:
- PORT=8079
- QUARKUS_KAFKA_STREAMS_BOOTSTRAP_SERVERS=kafka:9092
depends_on:
- connect
- kafka
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
ports:
- "9200:9200"
environment:
- http.host=0.0.0.0
- transport.host=127.0.0.1
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"