LichessStatTgWeb/docker-compose.yml
vrubelroman 7ef5875f58
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 12s
authenticate outgoing lichess.org requests to fix silent 404s on games/user
Lichess started rejecting anonymous requests to games/user and
user/activity with a 404 (confirmed live: the same request with a valid
bearer token got a normal 429 instead), which our code silently read as
"user has no games" for every single tracked player, making periodic
checks report zero activity across the board. Add LICHESS_APP_TOKEN and
send it as a Bearer token on these two calls; it just needs to be any
valid token; it does not need to belong to the tracked player.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-25 23:01:35 +00:00

72 lines
1.7 KiB
YAML

services:
# Lichess Web Services (API)
lichess-api:
build: ./LichessWebServices
image: 192.168.8.174:3000/vrubel/lichess-api:latest
container_name: lichess-api
ports:
- "8002:8000"
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./LichessWebServices:/app
restart: always
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health').read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Telegram Bot
lichess-bot:
build: ./LichessClientTG_bot
image: 192.168.8.174:3000/vrubel/lichess-bot:latest
container_name: lichess-telegram-bot
volumes:
- ./LichessClientTG_bot/data:/app/data
- ./LichessClientTG_bot:/app
env_file:
- .env
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
network_mode: "host"
restart: always
depends_on:
- lichess-api
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8002/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Admin Panel Telegram Bot
admin-bot:
build:
context: ./LichessClientTG_bot
dockerfile: Dockerfile.admin
image: 192.168.8.174:3000/vrubel/lichess-admin:latest
container_name: lichess-admin-bot
volumes:
- ./LichessClientTG_bot/data:/app/data
- ./LichessClientTG_bot:/app
env_file:
- .env
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
network_mode: "host"
restart: always
depends_on:
- lichess-api
networks:
default:
name: lichess-network