CoolFace
Apppublic

aananda/sql-agent-env

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes
docker-compose.yml37 linesDownload Raw Back to root
1version: "3.9"2 3services:4  # ── The OpenEnv server ────────────────────────────────────────────────────5  env:6    build: .7    container_name: sql-agent-env8    ports:9      - "7860:7860"10    environment:11      - PYTHONUNBUFFERED=112    healthcheck:13      test: ["CMD", "python", "-c",14             "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')"]15      interval: 10s16      timeout: 5s17      retries: 518      start_period: 15s19 20  # ── Baseline inference runner ─────────────────────────────────────────────21  # Runs after env is healthy, then exits.22  inference:23    build: .24    container_name: sql-agent-inference25    depends_on:26      env:27        condition: service_healthy28    environment:29      - API_BASE_URL=${API_BASE_URL:-https://api.openai.com/v1}30      - MODEL_NAME=${MODEL_NAME:-gpt-4o-mini}31      - HF_TOKEN=${HF_TOKEN:?HF_TOKEN must be set}32      - ENV_BASE_URL=http://env:786033      - PYTHONUNBUFFERED=134    command: ["python", "inference.py"]35    profiles:36      - inference   # only starts with: docker compose --profile inference up37