LangGraph-Agent / docker-compose.yml
Pawan Mane
Initial Changes
8986591
services:
# ── CLI mode ──────────────────────────────────────────────────────────
agent:
build:
context: .
dockerfile: Dockerfile
image: langgraph-agent:local
container_name: langgraph_agent
env_file: .env
environment:
- PYTHONPATH=/app
- GRADIO_MODE=false
stdin_open: true
tty: true
volumes:
- .:/app
- huggingface_cache:/root/.cache/huggingface
command: python main.py
profiles: ["cli"]
# ── Gradio UI mode ────────────────────────────────────────────────────
gradio:
build:
context: .
dockerfile: Dockerfile
image: langgraph-agent:local
container_name: langgraph_gradio
env_file: .env
environment:
- PYTHONPATH=/app
- GRADIO_MODE=true
ports:
- "7860:7860"
volumes:
- .:/app
- huggingface_cache:/root/.cache/huggingface
command: python app/frontend/gradio_app.py
volumes:
huggingface_cache: