-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 2.31 KB
/
docker-compose.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
version: '3.3'
services:
zookeeper:
container_name: zookeeper
ports:
- '2181:2181'
- '2888:2888'
- '3888:3888'
image: 'debezium/zookeeper:0.10'
kafka:
container_name: kafka
ports:
- '9092:9092'
links:
- 'zookeeper:zookeeper'
environment:
- ZOOKEEPER_CONNECT=zookeeper:2181
image: 'debezium/kafka:0.10'
postgres:
container_name: postgres
ports:
- '5435:5432'
environment:
- POSTGRES_PASSWORD=devfest
image: 'epiresdasilva/postgres-cdc-banking'
connect:
container_name: connect
ports:
- '8083:8083'
environment:
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=my_connect_configs
- OFFSET_STORAGE_TOPIC=my_connect_offsets
- STATUS_STORAGE_TOPIC=my_connect_statuses
- BOOTSTRAP_SERVERS=kafka:9092
links:
- 'zookeeper:zookeeper'
- 'kafka:kafka'
- 'postgres:postgres'
image: 'debezium/connect:0.10'
# curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" localhost:8083/connectors/ -d '{ "name": "movement-connector", "config": { "connector.class": "io.debezium.connector.postgresql.PostgresConnector", "tasks.max": "1", "database.hostname": "postgres", "database.port": "5432", "database.dbname": "postgres", "database.user": "postgres", "database.password": "devfest", "database.server.id": "184054", "database.server.name": "postgres", "database.whitelist": "banking", "database.history.kafka.bootstrap.servers": "kafka:9092", "database.history.kafka.topic": "dbhistory.movement" } }'
legacy:
container_name: legacy
ports:
- '8080:8080'
links:
- 'postgres:postgres'
image: 'epiresdasilva/banking-legacy'
microservice:
build: ./microservice
container_name: microservice
ports:
- '8081:8080'
links:
- 'postgres:postgres'
- 'kafka:kafka'
image: 'epiresdasilva/microservice'
python-trigger:
build: ./python-trigger
container_name: python-trigger
links:
- 'kafka:kafka'
image: 'epiresdasilva/python-trigger'