-
Notifications
You must be signed in to change notification settings - Fork 25
/
compose.yml
50 lines (50 loc) · 1.5 KB
/
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
version: '3.1'
services:
# comment out payload-tracker-api and payload-tracker-consumer stanza to disable them
payload-tracker-api:
image: payload-tracker-go
ports:
- "8080:8080"
environment:
DB_HOST: "payload-tracker-db"
command:
- /pt-api
depends_on:
- payload-tracker-db
payload-tracker-consumer:
image: payload-tracker-go
environment:
DB_HOST: "payload-tracker-db"
KAFKA_BOOTSTRAP_SERVERS: "kafka:29092"
command:
- /pt-consumer
depends_on:
- payload-tracker-db
- kafka
payload-tracker-db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: crc
POSTGRES_USER: crc
POSTGRES_DB: crc
ports:
- "5432:5432"
zookeeper:
image: confluentinc/cp-zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=32181
- ZOOKEEPER_SERVER_ID=1
kafka:
image: confluentinc/cp-kafka
ports:
- '29092:29092'
depends_on:
- zookeeper
environment:
# - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:29092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:29092
- KAFKA_BROKER_ID=1
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:32181
- KAFKA_AUTO_CREATE_TOPICS_ENABLE=true