-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 940 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 940 Bytes
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
services:
postgres:
image: postgres:15-alpine
container_name: postgres_baggage
environment:
POSTGRES_USER: chouket
POSTGRES_PASSWORD: 2003
POSTGRES_DB: baggage
ports:
- "5336:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chouket"]
interval: 10s
timeout: 5s
retries: 5
zookeeper:
image: bitnami/zookeeper:3.8
container_name: zookeeper
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
ports:
- "2181:2181"
kafka:
image: bitnami/kafka:3.4.0
container_name: kafka
ports:
- "9092:9092"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=false
depends_on:
- zookeeper
volumes:
postgres_data: