-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.init.yml
More file actions
85 lines (80 loc) · 2.13 KB
/
docker-compose.init.yml
File metadata and controls
85 lines (80 loc) · 2.13 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
##### Kafka/Redpanda Services - Start #####
redpanda:
user: root
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://0.0.0.0:9092
# NOTE: Please use the latest version here!
image: docker.vectorized.io/vectorized/redpanda:v21.9.5
container_name: rtdl_redpanda
volumes:
- ./storage/redpanda/data:/var/lib/redpanda/data
expose:
- 9092
- 9644
- 29092
ports:
- 9092:9092
- 29092:29092
healthcheck:
test: ["CMD","curl","-f","http://localhost:9644/v1/status/ready"]
start_period: 30s
interval: 5s
timeout: 2s
retries: 24
redpanda-setup:
image: docker.vectorized.io/vectorized/redpanda:v21.9.5
container_name: rtdl_redpanda-init
command: topic create ingress --replicas 1 --brokers redpanda:29092
depends_on:
redpanda:
condition: service_healthy
##### Kafka/Redpanda Services - End #####
##### Dremio Services - Start #####
dremio:
user: root
platform: linux/amd64
image: dremio/dremio-oss
container_name: rtdl_dremio
volumes:
- ./storage/dremio/data:/opt/dremio/data
- ./storage/rtdl-data_store:/mnt/datastore
expose:
- 9047
- 31010
- 45678
ports:
- 9047:9047
- 31010:31010
- 45678:45678
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9047/apiv2/server_status"]
interval: 10s
timeout: 5s
retries: 24
dremio-init:
platform: linux/amd64
image: curlimages/curl
container_name: rtdl_dremio-init
user: root
volumes:
- ./dremio/scripts/entrypoint-init.sh:/entrypoint.sh
entrypoint:
sh -c "chmod +x /entrypoint.sh && sh /entrypoint.sh"
depends_on:
dremio:
condition: service_healthy
##### Dremio Services - End #####