-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
59 lines (56 loc) · 1.72 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
version: '3.9'
networks:
star-agg:
services:
localstack:
image: localstack/localstack@sha256:edf19ecc92ab5698a30fe5d54875f4961962725a3d7477c0b77ec50b9d670575
ports:
- 4510-4559:4510-4559
- 4566:4566
environment:
- HOST_TMP_FOLDER=/tmp/localstack
- DOCKER_HOST=unix:///var/run/docker.sock
- LOCALSTACK_SERVICES=s3
volumes:
- "/tmp/localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./misc/create_localstack_bucket.sh:/docker-entrypoint-initaws.d/create_bucket.sh"
networks:
- star-agg
db:
image: postgres@sha256:4ec37d2a07a0067f176fdcc9d4bb633a5724d2cc4f892c7a2046d054bb6939e5
command: postgres -c 'max_connections=300'
ports:
- 5642:5432
environment:
POSTGRES_USER: star
POSTGRES_PASSWORD: password
networks:
- star-agg
volumes:
- "./misc/create_additional_dbs.sql:/docker-entrypoint-initdb.d/create_additional_dbs.sql"
zookeeper:
image: bitnami/zookeeper@sha256:b7f9e610ac57ce08d5e0f155da7443d9fdca0ab2543215e6f969b93e06400b5d
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- star-agg
kafka:
image: bitnami/kafka@sha256:6037ad00c9d7c786875d23008dde4f75bb1835b0c4eb3439358d7ea97ce85a6f
ports:
- 9092:9092
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_NUM_PARTITIONS=4
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092
- KAFKA_CFG_TRANSACTION_MAX_TIMEOUT_MS=3600000
depends_on:
- zookeeper
networks:
- star-agg
volumes:
- kafka-data:/bitnami/kafka
volumes:
kafka-data: