LichessStatTgWeb/docker-compose.yml
vrubelroman 1fe8deb0de
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m24s
ci: add Forgejo CI/CD pipeline with docker save/load deploy to prod
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 18:55:21 +00:00

84 lines
2 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"
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
# Web View Interface
web-view:
build: ./LichessWebView
image: 192.168.8.174:3000/vrubel/lichess-web:latest
container_name: lichess-web-view
ports:
- "5000:5000"
volumes:
- ./LichessClientTG_bot/data:/app/data:ro
- ./LichessWebView:/app
restart: always
depends_on:
- lichess-bot
networks:
default:
name: lichess-network