Compare commits
46
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23d8249286 | ||
|
|
bd04444d9d | ||
|
|
96d894d1e0 | ||
|
|
105dfea18e | ||
|
|
53a423cafe | ||
|
|
9dffa59603 | ||
|
|
97fea698f0 | ||
|
|
dbeb2084cf | ||
|
|
3eb5829053 | ||
|
|
fe09b02393 | ||
|
|
a6f6e633f0 | ||
|
|
61702d095a | ||
|
|
1234d28536 | ||
|
|
5e5f2494ac | ||
|
|
4690a0980b | ||
|
|
0ad3bd4d89 | ||
|
|
7b4f479aad | ||
|
|
6584239e75 | ||
|
|
d56f516161 | ||
|
|
d0cb19c521 | ||
|
|
8b74e98291 | ||
|
|
1ac46814ad | ||
|
|
ef3253d895 | ||
|
|
8439d56b42 | ||
|
|
8b02cae2af | ||
|
|
69a90de9a1 | ||
|
|
3e3deaa724 | ||
|
|
eebf802e31 | ||
|
|
f150c602e5 | ||
|
|
3ebcd98ec5 | ||
|
|
61b1018900 | ||
|
|
f58abe8003 | ||
|
|
3d85f13f26 | ||
|
|
0d5435022a | ||
|
|
59de5c672f | ||
|
|
93cba2f391 | ||
|
|
61e9fa94ac | ||
|
|
cbaa1099de | ||
|
|
5fbe8ae40c | ||
|
|
a27c45910c | ||
|
|
37f5bd8a80 | ||
|
|
65fb368f40 | ||
|
|
9fa24b39f3 | ||
|
|
a9bab86d64 | ||
|
|
2473117198 | ||
|
|
e5d780efce |
@@ -2,5 +2,6 @@ node_modules/
|
|||||||
.opencode/node_modules/
|
.opencode/node_modules/
|
||||||
.local.env
|
.local.env
|
||||||
.vscode
|
.vscode
|
||||||
|
docker-compose.yml
|
||||||
data/
|
data/
|
||||||
logs/
|
logs/
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
services:
|
|
||||||
tjwater-agent:
|
|
||||||
container_name: tjwater-agent
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
args:
|
|
||||||
UBUNTU_APT_MIRROR: mirrors.aliyun.com
|
|
||||||
PYPI_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
|
|
||||||
PYPI_TRUSTED_HOST: pypi.tuna.tsinghua.edu.cn
|
|
||||||
image: tjwater-agent:latest
|
|
||||||
environment:
|
|
||||||
NODE_ENV: production
|
|
||||||
HOST: 0.0.0.0
|
|
||||||
PORT: 8787
|
|
||||||
DEEPSEEK_API_KEY: "your_deepseek_api_key"
|
|
||||||
TJWATER_API_BASE_URL: "http://127.0.0.1:8000"
|
|
||||||
# Embedded 模式:容器内启动 opencode CLI 子进程
|
|
||||||
OPENCODE_MODE: embedded
|
|
||||||
OPENCODE_HOSTNAME: 127.0.0.1
|
|
||||||
OPENCODE_PORT: 4096
|
|
||||||
# Client 模式:连接外部服务地址,不依赖容器内 CLI
|
|
||||||
# OPENCODE_MODE: client
|
|
||||||
# OPENCODE_CLIENT_BASE_URL: "http://host.docker.internal:4096"
|
|
||||||
volumes:
|
|
||||||
# - /home/ubuntu/.config/opencode:/root/.config/opencode
|
|
||||||
# - /home/ubuntu/.local/share/opencode:/root/.local/share/opencode
|
|
||||||
- ./opencode/agents:/app/.opencode/agents
|
|
||||||
- ./opencode/skills:/app/.opencode/skills
|
|
||||||
- ./opencode/tools:/app/.opencode/tools
|
|
||||||
- ./logs:/app/logs
|
|
||||||
- ./data:/app/data
|
|
||||||
# extra_hosts:
|
|
||||||
# - "host.docker.internal:host-gateway"
|
|
||||||
ports:
|
|
||||||
- "8787:8787"
|
|
||||||
# - "4096:4096"
|
|
||||||
restart: unless-stopped
|
|
||||||
Reference in New Issue
Block a user