Files
DeepSeekHarnessDocker/docker-compose.yml
T
SKYMirror 0bfe0b4a65 chore: strip monorepo; keep Docker runtime deploy for official dsh@latest
Image installs @deepseek-ai/dsh from npm on start. Fork 0.1.2-alpha.2 source
is obsolete for this deployment path.
2026-09-16 00:18:32 +08:00

28 lines
1002 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
dsh:
build:
context: .
ports:
# 官方 dsh 只听 127.0.0.1:3081;entrypoint 在 0.0.0.0:3080 做 L4 转发
- "3080:3080"
# 需要向 Host/Origin 围栏声明非 loopback 权威时追加(不替代 token cookie):
# command: ["--trusted-host", "your-server-ip-or-domain"]
volumes:
- dsh-data:/home/dsh/.dsh # 会话、设置、配置、profiles(插件)持久化
- ./workspace:/workspace # agent 的工作目录
environment:
- DSH_HOME=/home/dsh/.dsh
- NODE_ENV=production
# 目录选择器默认从 /workspace 开始(HOME 决定 os.homedir())
- HOME=/workspace
# 启动时安装的 dsh(默认官方 npmjs 的 latest;失败则容器退出)
# - DSH_DIST_TAG=latest
# - DSH_NPM_REGISTRY=https://registry.npmmirror.com
# - DSH_PACKAGE=@deepseek-ai/dsh
# - DSH_INTERNAL_PORT=3081
# - DSH_FORWARD_PORT=3080
restart: unless-stopped
volumes:
dsh-data: