-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cds.yml
62 lines (62 loc) · 1.72 KB
/
docker-compose-cds.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
version: '3'
services:
kafka:
image: bitnami/kafka
hostname: kafka
container_name: kafka
ports:
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_LOG_RETENTION_MS: 10000
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 5000
ALLOW_PLAINTEXT_LISTENER: "yes"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
logging:
driver: none
zookeeper:
image: zookeeper
hostname: zookeeper
container_name: zookeeper
ports:
- "2181"
logging:
driver: none
crypto-detector:
build:
context: .
dockerfile: ./docker/crypto-detector/compose/Dockerfile
hostname: crypto-detector
container_name: crypto-detector
entrypoint: ["python3", "/app/crypto-detector.py", "-b", "kafka:9092", "-c", "cds-input", "-p", "cds-output"]
#restart: on-failure
depends_on:
- zookeeper
- kafka
crypto-consumer:
build:
context: .
dockerfile: ./docker/crypto-detector/crypto-consumer/compose/Dockerfile
hostname: crypto-consumer
container_name: crypto-consumer
entrypoint: ["python3", "/app/crypto-consumer.py", "-b", "kafka:9092", "-c", "cds-output"]
#restart: on-failure
depends_on:
- zookeeper
- kafka
crypto-producer:
build:
context: .
dockerfile: ./docker/crypto-detector/crypto-producer/compose/Dockerfile
hostname: crypto-producer
container_name: crypto-producer
entrypoint: ["python3", "/app/crypto-producer.py", "-b", "kafka:9092", "-p", "cds-input", "-t", "1"]
#restart: on-failure
depends_on:
- zookeeper
- kafka