-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (99 loc) · 2.59 KB
/
docker-compose.yml
File metadata and controls
109 lines (99 loc) · 2.59 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.9'
services:
arangodb:
image: arangodb:latest
env_file:
- .env
ports:
- "8529:8529"
volumes:
- arangodb_data_container:/var/lib/arangodb3
- arangodb_apps_data_container:/var/lib/arangodb3-apps
zookeeper:
image: zookeeper
ports:
- "2181:2181"
volumes:
- zk-data:/var/lib/zookeeper/data
- zk-txn-logs:/var/lib/zookeeper/log
healthcheck:
test: nc -z localhost 2181 || exit
interval: 10s
timeout: 5s
retries: 15
broker:
image: confluentinc/cp-kafka
container_name: broker
depends_on:
zookeeper:
condition: service_healthy
ports:
- "19092:19092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092,CONNECTIONS_FROM_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CREATE_TOPICS: "Users:1:1"
KAFKA_RESTART_ATTEMPTS: "10"
KAFKA_RESTART_DELAY: "5"
volumes:
- inarious_kafka-data:/var/lib/inarious_kafka/data
healthcheck:
test: nc -z localhost 9092 || exit
interval: 10s
timeout: 5s
retries: 15
init-kafka:
image: confluentinc/cp-kafka
depends_on:
broker:
condition: service_healthy
entrypoint: [ '/bin/sh', '-c' ]
command: |
"
# blocks until kafka is reachable
kafka-topics --bootstrap-server broker:9092 --list
echo -e 'Creating kafka topic'
kafka-topics --bootstrap-server broker:9092 --create --if-not-exists --topic Users --replication-factor 1 --partitions 1
echo -e 'Successfully created the following topics:'
kafka-topics --bootstrap-server broker:9092 --list
"
uikafka:
container_name: uikafka
image: provectuslabs/kafka-ui
environment:
DYNAMIC_CONFIG_ENABLED: true
ports:
- "8081:8080"
volumes:
- inarious_kafka-ui-config:/config.yml
inarious:
container_name: inarious
build:
context: ./
dockerfile: fastapi.Dockerfile
env_file:
- .env
ports:
- "8082:8000"
depends_on:
broker:
condition: service_healthy
faust_service0:
container_name: faust_service0
build:
context: ./
dockerfile: faust.Dockerfile
env_file:
- .env
depends_on:
broker:
condition: service_healthy
volumes:
arangodb_data_container:
arangodb_apps_data_container:
zk-data:
zk-txn-logs:
inarious_kafka-ui-config:
inarious_kafka-data: