Initial TradeBot implementation

This commit is contained in:
Курнат Андрей
2026-06-20 19:22:59 +03:00
commit de9de755f5
37 changed files with 6840 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
services:
tradebot:
build: .
container_name: crypto-spot-tradebot
env_file:
- .env
environment:
HOST: 0.0.0.0
user: "1000:1000"
ports:
- "127.0.0.1:8787:8787"
volumes:
- ./.env:/app/.env
- ./runtime:/app/runtime
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8787/api/health', timeout=5).read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped