2025-10-26 20:23:26 +03:00
|
|
|
services:
|
|
|
|
|
# Lichess Web Services (API)
|
|
|
|
|
lichess-api:
|
|
|
|
|
build: ./LichessWebServices
|
|
|
|
|
container_name: lichess-api
|
|
|
|
|
ports:
|
|
|
|
|
- "8001:8000"
|
|
|
|
|
environment:
|
|
|
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
|
volumes:
|
|
|
|
|
- ./LichessWebServices:/app
|
2025-10-28 21:34:35 +03:00
|
|
|
restart: always
|
2025-10-26 20:23:26 +03:00
|
|
|
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"
|
2025-10-28 21:34:35 +03:00
|
|
|
restart: always
|
2025-10-26 20:23:26 +03:00
|
|
|
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
|
2025-10-28 21:34:35 +03:00
|
|
|
restart: always
|
2025-10-26 20:23:26 +03:00
|
|
|
depends_on:
|
|
|
|
|
- lichess-bot
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
name: lichess-network
|
|
|
|
|
|
2025-10-28 21:34:35 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|