File size: 1,075 Bytes
d8328bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
42
43
44
45
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