Skip to content

Commit d241021

Browse files
committed
chore(tests): Compose yaml for testing.
1 parent 65ccbc3 commit d241021

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

Compose.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
version: '3.8'
2+
3+
services:
4+
redpanda-0:
5+
command:
6+
- redpanda
7+
- start
8+
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
9+
# Address the broker advertises to clients that connect to the Kafka API.
10+
# Use the internal addresses to connect to the Redpanda brokers'
11+
# from inside the same Docker network.
12+
# Use the external addresses to connect to the Redpanda brokers'
13+
# from outside the Docker network.
14+
- --advertise-kafka-addr internal://redpanda-0:9092,external://localhost:19092
15+
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
16+
# Address the broker advertises to clients that connect to the HTTP Proxy.
17+
- --advertise-pandaproxy-addr internal://redpanda-0:8082,external://localhost:18082
18+
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
19+
# Redpanda brokers use the RPC API to communicate with each other internally.
20+
- --rpc-addr redpanda-0:33145
21+
- --advertise-rpc-addr redpanda-0:33145
22+
# Mode dev-container uses well-known configuration properties for development in containers.
23+
- --mode dev-container
24+
# Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system.
25+
- --smp 1
26+
- --default-log-level=error
27+
image: docker.redpanda.com/redpandadata/redpanda:v25.1.7
28+
container_name: redpanda-0
29+
# volumes:
30+
# - redpanda-0:/var/lib/redpanda/data
31+
# networks:
32+
# - redpanda_network
33+
ports:
34+
- 18081:18081
35+
- 18082:18082
36+
- 19092:19092
37+
- 19644:9644
38+
console:
39+
container_name: redpanda-console
40+
image: docker.redpanda.com/redpandadata/console:v3.1.2
41+
# networks:
42+
# - redpanda_network
43+
entrypoint: /bin/sh
44+
command: -c 'echo "$$CONSOLE_CONFIG_FILE" > /tmp/config.yml; /app/console'
45+
environment:
46+
CONFIG_FILEPATH: /tmp/config.yml
47+
CONSOLE_CONFIG_FILE: |
48+
kafka:
49+
brokers: ["redpanda-0:9092"]
50+
schemaRegistry:
51+
enabled: true
52+
urls: ["http://redpanda-0:8081"]
53+
redpanda:
54+
adminApi:
55+
enabled: true
56+
urls: ["http://redpanda-0:9644"]
57+
ports:
58+
- 8080:8080
59+
depends_on:
60+
- redpanda-0

0 commit comments

Comments
 (0)