forked from quickwit-oss/quickwit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
140 lines (131 loc) · 3.89 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3.9"
networks:
default:
name: quickwit-network
ipam:
config:
- subnet: 172.16.7.0/24
gateway: 172.16.7.1
services:
localstack:
image: localstack/localstack:latest
container_name: localstack
ports:
- "4566:4566"
- "4571:4571"
- "8080:8080"
profiles:
- all
- localstack
environment:
DATA_DIR: /tmp/localstack/data
# `kinesalite` provides a more accurate implementation than
# the default Kinesis provider (`kinesis-mock`).
KINESIS_PROVIDER: kinesalite
SERVICES: kinesis,s3
volumes:
- ".localstack:/docker-entrypoint-initaws.d"
- "${TMPDIR:-/tmp}/quickwit/services/localstack:/var/lib/localstack"
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost:4566/quickwit-integration-tests"]
interval: 1s
timeout: 5s
retries: 100
postgres:
image: postgres:9.6.20 # Oldest version we support.
container_name: postgres
ports:
- "5432:5432"
profiles:
- all
- postgres
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: ${POSTGRES_USER:-quickwit-dev}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-quickwit-dev}
POSTGRES_DB: ${POSTGRES_DB:-quickwit-metastore-dev}
volumes:
- "${TMPDIR:-/tmp}/quickwit/services/postgres:/var/lib/postgresql/data/pgdata"
healthcheck:
test: ["CMD", "pg_isready"]
kafka-broker:
image: confluentinc/cp-kafka:7.2.1
container_name: kafka-broker
depends_on:
- zookeeper
ports:
- "9092:9092"
- "9101:9101"
profiles:
- all
- kafka
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-broker:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9101
KAFKA_JMX_HOSTNAME: localhost
healthcheck:
test: ["CMD", "cub", "kafka-ready", "-b", "localhost:9092", "1", "30"]
zookeeper:
image: confluentinc/cp-zookeeper:7.2.1
container_name: zookeeper
ports:
- "2181:2181"
profiles:
- all
- kafka
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
healthcheck:
test: ["CMD", "cub", "zk-ready", "localhost:2181", "30"]
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
container_name: azurite
ports:
- "10000:10000" # Blob store port
volumes:
- "${TMPDIR:-/tmp}/azurite:/data"
command: azurite --blobHost 0.0.0.0 --loose
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./config/docker-compose/prometheus.yml:/etc/prometheus/prometheus.yml
network_mode: host
jaeger:
image: jaegertracing/all-in-one:latest
container_name: jaeger
profiles:
- all
- jaeger
ports:
- "5775:5775/udp"
- "5778:5778"
- "6831:6831/udp"
- "6832:6832/udp"
- "14250:14250"
- "14268:14268"
- "16686:16686"
otel-collector:
image: otel/opentelemetry-collector
container_name: otel-collector
profiles:
- otel
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
- "55679:55679" # zpages extension
volumes:
- ./config/docker-compose/otel-collector-config.yaml:/etc/otel-collector-config.yaml
command: ["--config=/etc/otel-collector-config.yaml"]