Skip to content

Commit

Permalink
mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Apr 23, 2024
1 parent 8da9126 commit c692c6b
Show file tree
Hide file tree
Showing 12 changed files with 997 additions and 1,682 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
mount/*
!mount/.gitkeep
.venv/*
*/.venv/*
29 changes: 22 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
version: '3'
services:
mysql:
container_name: database
build:
context: .
image: mysql
context: ./mysql
image: bot-detector/mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root_bot_buster
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./mount:/var/lib/mysql
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
# - ./mysql/mount:/var/lib/mysql # creates persistence
ports:
- "127.0.0.1:3306:3306"
- 3307:3306
networks:
- botdetector-network
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10

mysql_setup:
container_name: mysql_setup
image: bot-detector/mysql_setup
build:
context: ./mysql_setup
command: ["python", "-u","setup_mysql.py"]
networks:
- botdetector-network
depends_on:
mysql:
condition: service_healthy
networks:
botdetector-network:

Loading

0 comments on commit c692c6b

Please sign in to comment.