67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
|
|
services:
|
||
|
|
lichess-api:
|
||
|
|
image: 192.168.8.174:3000/vrubel/lichess-api:latest
|
||
|
|
container_name: lichess-api
|
||
|
|
ports:
|
||
|
|
- "8002:8000"
|
||
|
|
environment:
|
||
|
|
- PYTHONUNBUFFERED=1
|
||
|
|
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
|
||
|
|
|
||
|
|
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
|
||
|
|
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
|
||
|
|
depends_on:
|
||
|
|
- lichess-api
|
||
|
|
|
||
|
|
web-view:
|
||
|
|
image: 192.168.8.174:3000/vrubel/lichess-web:latest
|
||
|
|
container_name: lichess-web-view
|
||
|
|
ports:
|
||
|
|
- "5000:5000"
|
||
|
|
volumes:
|
||
|
|
- ./data:/app/data:ro
|
||
|
|
restart: always
|
||
|
|
depends_on:
|
||
|
|
- lichess-bot
|
||
|
|
|
||
|
|
networks:
|
||
|
|
default:
|
||
|
|
name: lichess-network
|