Nexa_Labs / docker /docker-compose.yml
Allanatrix's picture
Upload 57 files
d8328bf verified
version: "3.9"
services:
tool-server:
build:
context: ..
dockerfile: docker/Dockerfile
image: nexasci-agent-kit:latest
container_name: nexasci-tool-server
command: ["uvicorn", "tools.server:app", "--host", "0.0.0.0", "--port", "8000"]
ports:
- "8000:8000"
environment:
- NVIDIA_VISIBLE_DEVICES=all
- GRADIO_SERVER_NAME=0.0.0.0
volumes:
- ../models:/app/models
- ../index:/app/index
- ../tmp:/app/tmp
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
agent-ui:
image: nexasci-agent-kit:latest
container_name: nexasci-agent-ui
command: ["python", "-m", "webui.agent_app"]
ports:
- "7860:7860"
environment:
- NVIDIA_VISIBLE_DEVICES=all
- GRADIO_SERVER_NAME=0.0.0.0
- TOOL_SERVER_BASE_URL=http://tool-server:8000
depends_on:
- tool-server
volumes:
- ../models:/app/models
- ../index:/app/index
- ../tmp:/app/tmp