ci: add Forgejo CI/CD pipeline with docker save/load deploy to prod
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m24s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m24s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8828375207
commit
1fe8deb0de
3 changed files with 122 additions and 0 deletions
66
docker-compose.prod.yml
Normal file
66
docker-compose.prod.yml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue