-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
97 lines (90 loc) · 2.3 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
services:
ui:
container_name: ui
restart: on-failure
build:
context: ./src/CodeRunner.UI
dockerfile: ./Dockerfile
ports:
- "8080:80"
depends_on:
- executor
- worker
executor:
container_name: executor
restart: on-failure
build:
context: ./src
dockerfile: ./CodeRunner.Executor/Dockerfile
ports:
- "5136:80"
depends_on:
- cache
- database
- kafka
worker:
container_name: worker
restart: on-failure
build:
context: ./src
dockerfile: ./CodeRunner.Worker/Dockerfile
depends_on:
- executor
cache:
container_name: cache
image: redis:latest
restart: on-failure
ports:
- 6379:6379
database:
container_name: mongo
image: mongo:latest
restart: on-failure
ports:
- 27017:27017
zookeeper:
container_name: zookeeper
image: bitnami/zookeeper:latest
restart: on-failure
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_PORT: 2181
ZOO_SERVERS: server.1=zookeeper:2888:3888
ALLOW_ANONYMOUS_LOGIN: "yes"
kafka:
container_name: kafka
image: bitnami/kafka:3.4.0-debian-11-r21
restart: on-failure
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:29092,EXTERNAL://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_LISTENERS: "INTERNAL://:29092,EXTERNAL://:9092"
KAFKA_ZOOKEEPER_SESSION_TIMEOUT: "6000"
KAFKA_RESTART_ATTEMPTS: "10"
KAFKA_RESTART_DELAY: "5"
ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: "0"
depends_on:
- zookeeper
kowl:
container_name: kowl
image: quay.io/cloudhut/kowl:v1.4.0
restart: on-failure
volumes:
- ./kowl_config:/etc/kowl/
ports:
- "8081:8080"
environment:
- KAFKA_BROKERS=kafka:29092
depends_on:
- kafka