-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.68 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.68 KB
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
services:
# A Postgres instance providing a metadata store for Bufstream.
postgres:
container_name: postgres
image: postgres:17
restart: always
environment:
POSTGRES_USER: bufstream
POSTGRES_PASSWORD: password
POSTGRES_DB: bufstream
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bufstream"]
interval: 10s
timeout: 5s
retries: 5
networks:
bufstream_net:
ports:
- "5432:5432"
volumes:
- ./postgres:/var/lib/postgresql/data
# The Bufstream broker, relying on Tigris for object storage
# Additional configuration is in config/bufstream.yaml.
bufstream:
image: bufbuild/bufstream:0.4.0
hostname: ${KAFKA_HOST}
container_name: bufstream
networks:
bufstream_net:
depends_on:
postgres:
condition: service_healthy
environment:
BUFSTREAM_KAFKA_HOST: ${KAFKA_HOST}
BUFSTREAM_KAFKA_PUBLIC_HOST: ${KAFKA_HOST}
TIGRIS_ACCESS_KEY_ID: ${TIGRIS_ACCESS_KEY_ID}
TIGRIS_SECRET_ACCESS_KEY: ${TIGRIS_SECRET_ACCESS_KEY}
ports:
- "${KAFKA_PORT}:9092"
- "9089:9089"
volumes:
- ./bufstream.yaml:/bufstream.yaml
healthcheck:
test: ["CMD", "/usr/local/bin/bufstream", "admin", "status", "--exit-code", "--url", "http://127.0.0.1:9089"]
command: ["serve", "--config", "/bufstream.yaml"]
cli:
container_name: cli
build:
context: .
dockerfile: Dockerfile.kafkactl
args:
- KAFKACTL_VERSION=${KAFKACTL_VERSION}
network_mode: host
volumes:
- ./messages.txt:/messages.txt
stdin_open: true
tty: true
command: tail -f /dev/null # Keep container running
networks:
bufstream_net: