version: "3.9" services: bot: build: context: . dockerfile: Dockerfile container_name: polymarket-bot env_file: - .env ports: - "2345:2345" volumes: - ./data:/app/data - ./logs:/app/logs - ./reports:/app/reports - ./config.yaml:/app/config.yaml:ro restart: unless-stopped healthcheck: test: ["CMD", "curl", "-sf", "http://localhost:2345/health"] interval: 30s timeout: 5s retries: 3 start_period: 15s deploy: resources: limits: memory: 1G cpus: "1.0" # Default: run dashboard with embedded engine command: ["dashboard"] # Override CMD for other commands: # docker compose run bot scan --limit 20 # docker compose run bot forecast