-
-
Notifications
You must be signed in to change notification settings - Fork 623
/
Copy pathdocker-compose.yml
97 lines (89 loc) · 2.45 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
version: "3.8"
services:
nats:
image: nats:2.10-alpine
container_name: nats_server
command: ["-js"]
ports:
- "4222:4222"
- "8222:8222"
postgres:
image: postgres:15
ports:
- "5432:5432"
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "test" ]
interval: 1s
timeout: 5s
retries: 10
command: ["postgres", "-c", "wal_level=logical", "-c", "wal_writer_delay=10ms"]
google-pubsub-emulator:
image: google/cloud-sdk:latest
command: gcloud beta emulators pubsub start --host-port=0.0.0.0:8085
ports:
- "8085:8085"
aws-localstack:
image: localstack/localstack
container_name: localstack
ports:
- "4566:4566" # Edge port for all services.
environment:
- SERVICES=sqs,sns
- DEFAULT_REGION=us-east-1
- DATA_DIR=/tmp/localstack/data
redpanda:
image: redpandadata/redpanda:latest
container_name: redpanda
ports:
- "29092:29092"
- "9644:9644" # Admin API
command:
- redpanda start
- --smp 1
- --memory 1G
- --overprovisioned
- --node-id 0
- --check=false
- --kafka-addr PLAINTEXT://0.0.0.0:29092
- --advertise-kafka-addr PLAINTEXT://localhost:29092
healthcheck:
test: ["CMD", "rpk", "cluster", "info"]
interval: 2s
timeout: 5s
retries: 10
profiles: ["redpanda"]
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- "29092:29092"
healthcheck:
test: ["CMD", "kafka-topics", "--list", "--bootstrap-server", "localhost:9092"]
interval: 2s
timeout: 5s
retries: 10
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
redis:
image: redis:${REDIS_VERSION:-7}-alpine
ports:
- "6379:6379"