-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-debug.yml
More file actions
148 lines (145 loc) · 4.15 KB
/
docker-compose-debug.yml
File metadata and controls
148 lines (145 loc) · 4.15 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# this docker-compose file is used for debugging and development purposes
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: mysql
image: bd/mysql # tags the image if build
build:
context: ./_mysql
environment:
- MYSQL_ROOT_PASSWORD=root_bot_buster
# - MYSQL_DATABASE=playerdata
ports:
- 3307: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
mysql_setup:
container_name: mysql_setup
image: bd/mysql_setup # tags the image if build
build:
context: ./_mysql_data
# command: ["sleep", "infinity"]
environment:
- DATABASE_URL=mysql+asyncmy://root:root_bot_buster@mysql:3306/playerdata
- DEBUG=False
networks:
- botdetector-network
depends_on:
mysql:
condition: service_healthy
minio:
image: minio/minio
expose:
- "9000"
- "9001"
ports:
- 9001
environment:
MINIO_ROOT_USER: "minio_user"
MINIO_ROOT_PASSWORD: "minio_password"
volumes:
- ./_minio_data:/data
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 1s
timeout: 10s
retries: 5
command: server /data --console-address ":9001"
networks:
- botdetector-network
project_debugger:
container_name: project_debugger
image: bd/project_debugger # tags the image if build
build:
context: ./
dockerfile: Dockerfile
target: dev
# command: ["uv", "run", "bases/bot_detector/hiscore_scraper/core.py"]
# command: uv run uvicorn bases.bot_detector.api_public.src.core.server:app --host 0.0.0.0 --reload --port 5000
# command: uv run uvicorn bases.bot_detector.website.core.server:app --host 0.0.0.0 --reload --port 5000
# command: uv run uvicorn bases.bot_detector.api_ml.core.server:app --host 0.0.0.0 --reload --port 5000
ports:
- 5000 # api endpoint
- 8000 # metrics endpoint
volumes:
- ./bases:/app/bases
- ./components:/app/components
- ./projects:/app/projects
command: ["sleep", "infinity"]
# network_mode: host # needed if we do any portforwarding from the cluster
networks:
- botdetector-network
environment:
- UV_HTTP_TIMEOUT=120
- BASE_URL=http://api_ml:5000
- MODEL_NAME=multi_model_v1
env_file:
- .env
networks:
botdetector-network:
name: bd-network