22 lines
536 B
YAML
22 lines
536 B
YAML
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
|