Spaces:
Sleeping
Sleeping
| 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: |