Создание единого проекта Lichess Statistics Ecosystem
- Объединены три проекта в один репозиторий - LichessWebServices - REST API для статистики - LichessClientTG_bot - Telegram бот с поддержкой множества пользователей - LichessWebView - Веб-интерфейс для просмотра пользователей и игроков - Добавлен общий docker-compose.yml для запуска всех сервисов - Добавлен скрипт start.sh для удобного запуска - Добавлен README с полным описанием проекта
This commit is contained in:
commit
a08fc8c962
32 changed files with 4990 additions and 0 deletions
54
docker-compose.yml
Normal file
54
docker-compose.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
services:
|
||||
# Lichess Web Services (API)
|
||||
lichess-api:
|
||||
build: ./LichessWebServices
|
||||
container_name: lichess-api
|
||||
ports:
|
||||
- "8001:8000"
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
volumes:
|
||||
- ./LichessWebServices:/app
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
# Telegram Bot
|
||||
lichess-bot:
|
||||
build: ./LichessClientTG_bot
|
||||
container_name: lichess-telegram-bot
|
||||
volumes:
|
||||
- ./LichessClientTG_bot/data:/app/data
|
||||
environment:
|
||||
- PYTHONPATH=/app
|
||||
- PYTHONUNBUFFERED=1
|
||||
network_mode: "host"
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- lichess-api
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8001/health', timeout=5)"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# Web View Interface
|
||||
web-view:
|
||||
build: ./LichessWebView
|
||||
container_name: lichess-web-view
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- ./LichessClientTG_bot/data:/app/data:ro
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- lichess-bot
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: lichess-network
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue