-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
68 lines (68 loc) · 2.03 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
63
64
65
66
67
68
# This docker compose file defines all of the services needed to run the demo.
services:
# The core bufstream service.
#
# This is an image optimized for the demo; it is purposefully not a production image.
bufstream:
image: us-docker.pkg.dev/buf-images-1/bufstream-public/images/bufstream:0.3.1
hostname: bufstream
container_name: bufstream
ports:
# We'll expose bufstream on the host at port 9092.
- "9092:9092"
healthcheck:
test: ["CMD", "/usr/local/bin/bufstream", "admin", "status", "--exit-code", "--url", "http://127.0.0.1:9089"]
start_period: 15s
interval: 5s
timeout: 10s
retries: 10
# Edit config/bufstream.yaml within this repository to change configuation.
volumes:
- "./config/bufstream.yaml:/bufstream.yaml"
command: [
"--config", "/bufstream.yaml",
"--config.kafka.public_address.host", "bufstream",
]
# The demo consumer.
#
# This is a Docker image that just runs the binary created from cmd/bufstream-demo-consume.
consume:
build:
context: .
dockerfile: Dockerfile.consume
depends_on:
- bufstream
command: [
"--bootstrap", "bufstream:9092",
"--csr-url", "https://demo.buf.dev/integrations/confluent/bufstream-demo",
]
# The demo producer.
#
# This is a Docker image that just runs the binary created from cmd/bufstream-demo-produce.
produce:
build:
context: .
dockerfile: Dockerfile.produce
depends_on:
- bufstream
command: [
"--bootstrap", "bufstream:9092",
"--csr-url", "https://demo.buf.dev/integrations/confluent/bufstream-demo",
]
# Uncomment the below to get AKHQ running against bufstream.
#
# akhq:
# image: tchiotludo/akhq:0.25.0
# stop_signal: SIGKILL
# depends_on:
# - bufstream
# healthcheck:
# test: nc -z akhq 8080 || exit -1
# start_period: 15s
# interval: 5s
# timeout: 10s
# retries: 10
# ports:
# - "8080:8080"
# volumes:
# - "./config/akhq.yaml:/app/application.yml"