-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
62 lines (61 loc) · 1.46 KB
/
docker-compose.yaml
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
version: '2'
services:
zookeeper:
container_name: zookeper-car-data
image: quay.io/debezium/zookeeper:latest
kafka:
container_name: kafka-car-data
image: quay.io/debezium/kafka:latest
ports:
- 9092:9092
links:
- zookeeper
environment:
- ZOOKEEPER_CONNECT=zookeeper:2181
postgres:
container_name: postgres-car-data
build: ./postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=database
volumes:
- ./postgres/data:/var/lib/postgresql/data
adminer:
image: adminer
ports:
- 8080:8080
connect:
container_name: debezium-car-data
image: debezium/connect-jdbc-es:latest
build:
context: debezium-jdbc-es
args:
DEBEZIUM_VERSION: latest
ports:
- 8083:8083
- 5005:5005
links:
- kafka:kafka
- postgres:postgres
environment:
- BOOTSTRAP_SERVERS=kafka:9092
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=_connect_configs
- OFFSET_STORAGE_TOPIC=_connect_offsets
- STATUS_STORAGE_TOPIC=_source_connect_statuses
- CONNECT_JDBC_URL=jdbc:postgresql://postgres:5432/database
python-app:
container_name: ml-main-app
build: ./src
command: >
bash -c "python configure_connectors.py
&& python ./app/price_predictor.py"
volumes:
- ./src/app:/src/app/
bento:
image: ford_price_predictor:1.0.0
ports:
- 3000:3000