forked from delta-io/kafka-delta-ingest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.17 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
---
version: '3.9'
services:
kafka:
image: wurstmeister/kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_CREATE_TOPICS: "example:3:1,web_requests:3:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
healthcheck:
test: ["CMD", "bash", "-c", "unset", "JMX_PORT", ";", "kafka-topics.sh", "--zookeeper", "zookeeper:2181", "--list"]
zookeeper:
image: wurstmeister/zookeeper
privileged: true
ports:
- "2181:2181"
localstack:
image: localstack/localstack:0.12.11
ports:
- "4566:4566"
environment:
- SERVICES=s3,dynamodb
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
- HOST_TMP_FOLDER=${TMPDIR}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4566/health" ]
setup:
image: localstack/localstack:0.12.11
depends_on:
- kafka
- localstack
entrypoint: "/bin/bash"
command:
- /localstack-setup_emails.sh
volumes:
- "./bin/localstack-setup_emails.sh:/localstack-setup_emails.sh"
- "./tests/data/emails/:/data/emails"