LichessStatTgWeb/docker-compose.yml

78 lines
1.7 KiB
YAML
Raw Normal View History

services:
# Lichess Web Services (API)
lichess-api:
build: ./LichessWebServices
container_name: lichess-api
ports:
- "8001:8000"
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
container_name: lichess-telegram-bot
volumes:
- ./LichessClientTG_bot/data:/app/data
2025-11-13 01:00:48 +03:00
- ./LichessClientTG_bot:/app
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:8001/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
2025-11-13 01:00:48 +03:00
# Admin Panel Telegram Bot
admin-bot:
build:
context: ./LichessClientTG_bot
dockerfile: Dockerfile.admin
container_name: lichess-admin-bot
volumes:
- ./LichessClientTG_bot/data:/app/data
- ./LichessClientTG_bot:/app
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
network_mode: "host"
restart: always
depends_on:
- lichess-api
# Web View Interface
web-view:
build: ./LichessWebView
container_name: lichess-web-view
ports:
- "5000:5000"
volumes:
- ./LichessClientTG_bot/data:/app/data:ro
2025-11-16 23:36:57 +03:00
- ./LichessWebView:/app
restart: always
depends_on:
- lichess-bot
networks:
default:
name: lichess-network