forked from Bot-detector/bot-detector-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (60 loc) · 1.49 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
version: '3'
services:
mysql:
build:
context: ../bot-detector-mysql
dockerfile: Dockerfile
image: bot-detector/bd-mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root_bot_buster
- MYSQL_USER=botssuck
- MYSQL_PASSWORD=botdetector
volumes:
- '../bot-detector-mysql/mount:/var/lib/mysql'
- '../bot-detector-mysql/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/'
ports:
- "3306:3306"
networks:
- botdetector-network
api:
build:
context: ../Bot-Detector-Core-Files
dockerfile: Dockerfile
args:
root_path: ''
api_port: 5000
image: bot-detector/bd-api:latest
environment:
- sql_uri=mysql+asyncmy://root:root_bot_buster@mysql:3306/playerdata
- discord_sql_uri=mysql+asyncmy://root:root_bot_buster@mysql:3306/discord
- token=verify_ban
volumes:
- '../Bot-Detector-Core-Files/api:/code/api'
ports:
- "5000:5000"
networks:
- botdetector-network
depends_on:
- mysql
machine-learning:
build:
context: .
dockerfile: Dockerfile
target: base
args:
root_path: '/'
api_port: 8000
container_name: bd-ml
command: uvicorn api.app:app --host 0.0.0.0 --reload --reload-include api/*
env_file:
- .env
volumes:
- ../bot-detector-ML/api:/project/api
ports:
- 8000:8000
networks:
- botdetector-network
depends_on:
- api
networks:
botdetector-network: