Compare commits
49
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5835df7263 | ||
|
|
2dfe06bef7 | ||
|
|
3da1a4585c | ||
|
|
9ee197af20 | ||
|
|
5f4ff0e57a | ||
|
|
8cd81900f8 | ||
|
|
8281c532f2 | ||
|
|
7b79c4034d | ||
|
|
2e6f4b0a10 | ||
|
|
65a1a11b39 | ||
|
|
90d591b7bb | ||
|
|
aa8f801a04 | ||
|
|
f1fae1819f | ||
|
|
cdeba0a725 | ||
|
|
1c226afb69 | ||
|
|
be5e4c87de | ||
|
|
9373a42841 | ||
|
|
baec7940a5 | ||
|
|
ebb0743fcb | ||
|
|
50c44ddc2d | ||
|
|
ad34cbeab3 | ||
|
|
38644bf5a9 | ||
|
|
6547a87391 | ||
|
|
45435c8f1b | ||
|
|
3dfbc7c33e | ||
|
|
60e5b37913 | ||
|
|
160136014e | ||
|
|
4cbddb9e0c | ||
|
|
2f83add134 | ||
|
|
4ec6cbed16 | ||
|
|
2ba4f35a2d | ||
|
|
5315ff1902 | ||
|
|
59270b6b29 | ||
|
|
3021fc42ec | ||
|
|
319b3c8ea5 | ||
|
|
0dcb04ee89 | ||
|
|
cbe13dd1df | ||
|
|
3efd2e2871 | ||
|
|
c5801bbf41 | ||
|
|
37bee1e775 | ||
|
|
3c7e02f974 | ||
|
|
f049712b68 | ||
|
|
883faa2d54 | ||
|
|
fb2b4fad9f | ||
|
|
1afd0d9f3e | ||
|
|
f20c131bec | ||
|
|
ac2870a938 | ||
|
|
32babdd8a2 | ||
|
|
f6c45f1ba5 |
@@ -2,6 +2,5 @@ node_modules/
|
||||
.opencode/node_modules/
|
||||
.local.env
|
||||
.vscode
|
||||
docker-compose.yml
|
||||
data/
|
||||
logs/
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
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