-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
executable file
·98 lines (88 loc) · 3.11 KB
/
docker-compose.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
just-chat-ui-agents:
container_name: just-chat-ui-agents
image: ghcr.io/longevity-genie/just-agents/chat-ui-agents:main
environment:
# Web server configuration
APP_HOST: "0.0.0.0" # app host inside container, 0's to expose
APP_PORT: "8089" # app port inside container
# Agent core configuration
AGENT_TITLE: "Just Chat-UI REST API node"
AGENT_WORKERS: "1"
AGENT_SECTION: "" # for one agent
AGENT_PARENT_SECTION: "agent_profiles"
AGENT_FAILFAST: "true" # fail fast on startup in case of profile errors or just drop bad profiles
AGENT_DEBUG: "false"
AGENT_CONFIG_PATH: "/app/chat_agent_profiles.yaml"
# Agent connectivity for chat UI
AGENT_HOST: "http://just-chat-ui-agents" # agent host for chat to access
AGENT_PORT: "8089" # agent port for chat to access
# Directory configuration
APP_DIR: "/app"
TMP_DIR: "tmp"
LOG_DIR: "logs"
DATA_DIR: "data"
MODELS_DIR: "/app/models.d" # used by chat-ui to get models
# Environment files
ENV_KEYS_PATH: "/app/env/.env.keys" # used by agents to get keys
ENV_MODELS_PATH: "/app/env/.env.local" # used by chat-ui to get models
# Additional configuration options
TRAP_CHAT_NAMES: "true" #re-route naming to dedicated agent or use default (first in list) agent intead for this purpose
# User/group configuration
USER_ID: ${USER_ID:-${UID}}
GROUP_ID: ${GROUP_ID:-${GID}}
ports:
- "127.0.0.1:8089:8089"
#entrypoint: [ "/usr/local/bin/entrypoint.sh" ]
#command: ["python", "-m", "just_agents.web.run_agent", "run-chat-ui-server-command"]
healthcheck:
test: ["CMD-SHELL", "curl -s 0.0.0.0:8089 | grep -q REST && test -f ./env/.env.local"]
interval: 15s
retries: 10
start_period: 15s
timeout: 1s
volumes:
# - "./scripts/replacement_entrypoint.sh:/usr/local/bin/entrypoint.sh"
- "./scripts/init_env.py:/app/init.py"
- "./data:/app/data"
- "./env:/app/env"
- "./logs:/app/logs"
- "./scripts:/app/scripts"
- "./agent_tools:/app/agent_tools"
- "./chat_agent_profiles.yaml:/app/chat_agent_profiles.yaml"
restart: on-failure:3
huggingchat-ui:
container_name: just-chat-ui-for-agents
image: ghcr.io/longevity-genie/chat-ui/chat-ui:sha-325df57
environment:
ALLOW_INSECURE_COOKIES: "true"
INCLUDE_DB: "False"
volumes:
- "./env/.env.local:/app/.env.local"
ports:
- "0.0.0.0:3000:3000"
depends_on:
just-chat-ui-agents:
condition: service_healthy
chat-mongo:
condition: service_started
restart: unless-stopped
chat-mongo:
container_name: just-chat-mongodb-for-agents
image: docker.io/library/mongo:latest
restart: always
env_file:
- ./env/.env.mongo
ports:
- "27017"
volumes:
- "mongo-data:/data/db"
# - "./volumes/mongo/db:/data/db"
depends_on:
just-chat-ui-agents:
condition: service_healthy
volumes:
mongo-data:
networks:
default:
name: chat-server-for-agents