forked from RedHatInsights/payload-tracker-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
45 lines (45 loc) · 1.25 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
version: '3.1'
services:
# comment out payload-tracker-api stanza to disable it
payload-tracker-api:
image: payload-tracker-go
ports:
- "8080:8080"
environment:
DB_HOST: "localhost"
command:
- /pt-api
depends_on:
- payload-tracker-db
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_BROKER_ID=1
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:32181
- KAFKA_AUTO_CREATE_TOPICS_ENABLE=true
redis:
image: registry.redhat.io/rhel8/redis-5
ports:
- 6379:6379
depends_on:
- payload-tracker-db