-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
121 lines (115 loc) · 3.07 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
services:
kafka:
image: apache/kafka:3.7.2
container_name: kafka
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_NUM_PARTITIONS: 3
ports:
- 9092:9092
healthcheck:
test:
[
"CMD",
"./opt/kafka/bin/kafka-topics.sh",
"--list",
"--bootstrap-server",
"localhost:9092"
]
interval: 30s
timeout: 10s
retries: 5
networks:
- botdetector-network
kafka_setup:
container_name: kafka_setup
image: bd/kafka_setup # tags the image if build
build:
context: ./_kafka
# command: ["sleep", "infinity"]
environment:
- KAFKA_BROKER=kafka:9092
networks:
- botdetector-network
depends_on:
kafka:
condition: service_healthy
kafdrop:
container_name: kafdrop
image: obsidiandynamics/kafdrop:latest
environment:
- KAFKA_BROKERCONNECT=kafka:9092
- JVM_OPTS=-Xms32M -Xmx64M
- SERVER_SERVLET_CONTEXTPATH=/
ports:
- 9000:9000
restart: on-failure
networks:
- botdetector-network
depends_on:
kafka:
condition: service_healthy
mysql:
container_name: database
build:
context: ./_mysql
image: bd/mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root_bot_buster
volumes:
- ./_mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- 3306:3306
expose:
- 3306
networks:
- botdetector-network
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -proot_bot_buster"]
interval: 10s
retries: 3
start_period: 30s
timeout: 5s
# hiscore_scraper:
# container_name: hiscore_scraper
# image: bd/hiscore_scraper # tags the image if build
# build:
# context: ./
# dockerfile: ./projects/hiscore_scraper/Dockerfile
# # command: ["sleep", "infinity"]
# networks:
# - botdetector-network
# env_file:
# - .env
# depends_on:
# kafka:
# condition: service_healthy
project_debugger:
container_name: project_debugger
image: bd/project_debugger # tags the image if build
build:
context: ./
dockerfile: Dockerfile
# command: ["uv", "run", "bases/bot_detector/hiscore_scraper/core.py"]
volumes:
- ./bases:/app/bases
- ./components:/app/components
- ./projects:/app/projects
command: ["sleep", "infinity"]
networks:
- botdetector-network
env_file:
- .env
networks:
botdetector-network:
name: bd-network