forked from DependencyTrack/hyades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 2.1 KB
/
docker-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3"
services:
redpanda:
image: docker.redpanda.com/vectorized/redpanda:v22.2.7
container_name: redpanda
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
- --pandaproxy-addr
- PLAINTEXT://0.0.0.0:28082,OUTSIDE://0.0.0.0:8082
- --advertise-pandaproxy-addr
- PLAINTEXT://redpanda:28082,OUTSIDE://localhost:8082
ports:
- "8081:8081"
- "8082:8082"
- "9092:9092"
- "28082:28082"
- "29092:29092"
restart: unless-stopped
init:
image: docker.redpanda.com/vectorized/redpanda:v22.2.7
depends_on:
- redpanda
entrypoint: [ '/bin/sh', '-c' ]
command: |
"
/usr/bin/rpk cluster health --watch --brokers=redpanda:29092
echo -e 'Creating topics now'
/usr/bin/rpk topic create event --brokers=redpanda:29092 --replicas=1 --partitions=3 --topic-config retention.ms=86400000
/usr/bin/rpk topic create OSSEvent --brokers=redpanda:29092 --replicas=1 --partitions=3 --topic-config retention.ms=86400000
/usr/bin/rpk topic create EventNew --brokers=redpanda:29092 --replicas=1 --partitions=3 --topic-config retention.ms=86400000
/usr/bin/rpk topic create vuln-cache --brokers=redpanda:29092 --replicas=1 --partitions=3 --topic-config retention.ms=86400000
/usr/bin/rpk topic create vuln-result --brokers=redpanda:29092 --replicas=1 --partitions=3 --topic-config retention.ms=86400000
/usr/bin/rpk topic create component-cache --brokers=redpanda:29092 --replicas=1 --partitions=3 --topic-config retention.ms=86400000
"
ports:
- "8093:8093"
redpanda-console:
image: docker.redpanda.com/vectorized/console:v2.0.3
container_name: redpanda-console
depends_on:
- redpanda
environment:
KAFKA_BROKERS: "redpanda:29092"
ports:
- "127.0.0.1:28080:8080"
restart: unless-stopped