infra: Dockerfile + docker-compose per paper trader su VPS

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-27 10:10:02 +02:00
parent 591f045cde
commit 6755063c7b
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
services:
paper-trader:
build: .
container_name: pythagoras-paper
restart: unless-stopped
volumes:
- ./data:/app/data
environment:
- PYTHONUNBUFFERED=1
healthcheck:
test: ["CMD", "python", "-c", "import json; s=json.load(open('/app/data/paper_trades/status.json')); assert s['last_update']"]
interval: 120s
timeout: 10s
retries: 3