-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
extreme4all
committed
Apr 23, 2024
1 parent
8da9126
commit c692c6b
Showing
12 changed files
with
997 additions
and
1,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
mount/* | ||
!mount/.gitkeep | ||
.venv/* | ||
*/.venv/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
||
Oops, something went wrong.