2026-06-30 18:55:21 +00:00
|
|
|
services:
|
|
|
|
|
lichess-api:
|
|
|
|
|
image: 192.168.8.174:3000/vrubel/lichess-api:latest
|
|
|
|
|
container_name: lichess-api
|
|
|
|
|
ports:
|
iteration 1: report with game table, /getgamers state screen, silent-30-days prompt, /today as one message, stats port bound to localhost
- periodic report rebuilt in HTML: title with games count, mode lines, one <pre>
table (± · colour · accuracy · opponent rating · opponent accuracy), 10-row cap,
span note after catch-up; stats service returns tracked_rating_diff per game
- /getgamers shows player state from the DB (played today / N days quiet /
closed / not found, report period) without Lichess calls; ratings on a button
- "player silent 30 days — keep?" prompt with keep/delete buttons, repeat 90 days
- /today, /yesterday, /week: one message edited into the result, nav buttons
- /year localised; active-gamer leftovers and N/A removed; one period wording
- docker-compose.prod.yml: stats port 8002 bound to 127.0.0.1
- product review docs: user journeys, concepts, Mini App feasibility, proposal
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-21 11:26:20 +00:00
|
|
|
- "127.0.0.1:8002:8000"
|
2026-07-25 23:01:35 +00:00
|
|
|
env_file:
|
|
|
|
|
- .env
|
2026-06-30 18:55:21 +00:00
|
|
|
environment:
|
|
|
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
|
restart: always
|
2026-10-20 21:21:19 +00:00
|
|
|
logging:
|
|
|
|
|
driver: json-file
|
|
|
|
|
options:
|
|
|
|
|
max-size: "50m"
|
|
|
|
|
max-file: "3"
|
2026-06-30 18:55:21 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
lichess-bot:
|
|
|
|
|
image: 192.168.8.174:3000/vrubel/lichess-bot:latest
|
|
|
|
|
container_name: lichess-telegram-bot
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data:/app/data
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
environment:
|
|
|
|
|
- PYTHONPATH=/app
|
|
|
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
|
network_mode: "host"
|
|
|
|
|
restart: always
|
2026-10-20 21:21:19 +00:00
|
|
|
logging:
|
|
|
|
|
driver: json-file
|
|
|
|
|
options:
|
|
|
|
|
max-size: "50m"
|
|
|
|
|
max-file: "3"
|
2026-06-30 18:55:21 +00:00
|
|
|
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-bot:
|
|
|
|
|
image: 192.168.8.174:3000/vrubel/lichess-admin:latest
|
|
|
|
|
container_name: lichess-admin-bot
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data:/app/data
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
environment:
|
|
|
|
|
- PYTHONPATH=/app
|
|
|
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
|
network_mode: "host"
|
|
|
|
|
restart: always
|
2026-10-20 21:21:19 +00:00
|
|
|
logging:
|
|
|
|
|
driver: json-file
|
|
|
|
|
options:
|
|
|
|
|
max-size: "50m"
|
|
|
|
|
max-file: "3"
|
2026-06-30 18:55:21 +00:00
|
|
|
depends_on:
|
|
|
|
|
- lichess-api
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
name: lichess-network
|