-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (67 loc) · 1.95 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
version: '3'
services:
zookeeper:
build: ./build/zookeeper/
hostname: zookeeper
ports:
- "${ZOOKEEPER_PORT}:${ZOOKEEPER_PORT}"
environment:
ZOO_MY_ID: 1
ZOO_PORT: ${ZOOKEEPER_PORT}
ZOO_SERVERS: server.1=zookeeper:2888:3888
kafka:
build: ./build/kafka/
hostname: kafka
ports:
- "${KAFKA_PORT}:${KAFKA_PORT}"
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka:1${KAFKA_PORT},LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:${KAFKA_PORT}
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:${ZOOKEEPER_PORT}"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CREATE_TOPICS: "${BASE_TOPIC}:1:1"
depends_on:
- zookeeper
kafdrop:
build: ./build/kafdrop/
restart: "no"
ports:
- "${KAFDROP_PORT}:9000"
environment:
KAFKA_BROKERCONNECT: "kafka:1${KAFKA_PORT}"
depends_on:
- kafka
flask:
build: ./build/flask/
ports:
- ${FLASK_PORT}:${FLASK_PORT}
environment:
FLASK_APP: /var/api/server.py
PORT: ${FLASK_PORT}
postgres:
build: ./build/postgres/
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: examplepw
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
volumes:
- /mnt/pgadmin:/root/.pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
restart: unless-stopped
faust:
build: ./build/faust/
ports:
- "7000:7000"
command: "faust --datadir=/data/work_6067 -A faust_worker worker -l info --web-port 6067"
depends_on:
- kafka