Spaces:
Sleeping
Sleeping
File size: 1,184 Bytes
8986591 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 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: |