-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
62 lines (59 loc) · 1.68 KB
/
Copy pathdocker-compose.demo.yml
File metadata and controls
62 lines (59 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
# Streamline All-in-One Demo with Pre-Seeded Data
#
# Starts Streamline in playground mode and seeds demo topics with sample data.
# Includes persistent volumes so data survives restarts.
#
# Usage:
# docker compose -f docker-compose.demo.yml up -d
#
# # Verify demo topics
# docker compose -f docker-compose.demo.yml exec streamline streamline-cli topics list
#
# # Consume from a demo topic
# docker compose -f docker-compose.demo.yml exec streamline \
# streamline-cli --broker localhost:9092 consume demo-events --from-beginning -n 5
#
# # Tear down (preserves data volume)
# docker compose -f docker-compose.demo.yml down
#
# # Tear down and remove data
# docker compose -f docker-compose.demo.yml down -v
services:
streamline:
build:
context: .
dockerfile: Dockerfile
container_name: streamline-demo
ports:
- "9092:9092" # Kafka protocol
- "9094:9094" # HTTP API
command: ["--playground"]
volumes:
- streamline_demo_data:/data
environment:
- STREAMLINE_LISTEN_ADDR=0.0.0.0:9092
- STREAMLINE_DATA_DIR=/data
- STREAMLINE_LOG_LEVEL=info
- RUST_LOG=info
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9094/health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
seed-data:
build:
context: ./docker
dockerfile: Dockerfile.seed
container_name: streamline-demo-seed
environment:
- STREAMLINE_HOST=streamline
- STREAMLINE_KAFKA_PORT=9092
- STREAMLINE_HTTP_PORT=9094
depends_on:
streamline:
condition: service_healthy
volumes:
streamline_demo_data:
driver: local