docs: add docker / docker-compose run examples
Document ACR multi-arch image, compose minimal YAML, docker run variants (pin version, custom port, --trusted-host), and token URL handling.
This commit is contained in:
1 parent
7444ba9ca0
commit
4be0850529
3 files changed
+292
-16
No files matched your search
@@ -1,19 +1,62 @@
|
||||
# DeepSeek Harness Docker Deploy
|
||||
|
||||
Runtime image for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`) Web UI.
|
||||
Runtime image wrapper for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`) Web UI.
|
||||
|
||||
The image ships a toolchain only. On every container start, `docker/entrypoint.sh` installs official `@deepseek-ai/dsh@latest` from npm, then starts `dsh web` behind a local port forward (`0.0.0.0:3080` → `127.0.0.1:3081`).
|
||||
|
||||
## Quick start
|
||||
Prebuilt image (multi-arch `linux/amd64` + `linux/arm64`):
|
||||
|
||||
```bash
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
docker logs -f dsh
|
||||
# Open the printed URL with ?token= once (30-day cookie). Use host port 3080.
|
||||
```text
|
||||
registry.cn-hangzhou.aliyuncs.com/skymirror/dsh:latest
|
||||
```
|
||||
|
||||
Full guide: [DEPLOY.md](DEPLOY.md)
|
||||
## Docker Compose (recommended)
|
||||
|
||||
```bash
|
||||
git clone <this-repo>
|
||||
cd DeepSeekHarnessDocker
|
||||
docker compose up -d --build # or image: …/skymirror/dsh:latest without build
|
||||
docker compose logs -f dsh
|
||||
```
|
||||
|
||||
Minimal compose:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
dsh:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/skymirror/dsh:latest
|
||||
ports:
|
||||
- "3080:3080"
|
||||
volumes:
|
||||
- dsh-data:/home/dsh/.dsh
|
||||
- ./workspace:/workspace
|
||||
environment:
|
||||
- DSH_HOME=/home/dsh/.dsh
|
||||
- HOME=/workspace
|
||||
- DSH_NPM_REGISTRY=https://registry.npmmirror.com
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
dsh-data:
|
||||
```
|
||||
|
||||
## docker run
|
||||
|
||||
```bash
|
||||
docker run -d --name dsh \
|
||||
--restart unless-stopped \
|
||||
-p 3080:3080 \
|
||||
-v dsh-data:/home/dsh/.dsh \
|
||||
-v "$PWD/workspace":/workspace \
|
||||
-e DSH_HOME=/home/dsh/.dsh \
|
||||
-e HOME=/workspace \
|
||||
-e DSH_NPM_REGISTRY=https://registry.npmmirror.com \
|
||||
registry.cn-hangzhou.aliyuncs.com/skymirror/dsh:latest
|
||||
|
||||
docker logs -f dsh
|
||||
```
|
||||
|
||||
Open the logged `dsh web: http://127.0.0.1:3081/?token=…` URL once with **`:3081` replaced by `:3080`** (30-day cookie). Full guide: [DEPLOY.md](DEPLOY.md) / [中文](README.zh.md).
|
||||
|
||||
## Layout
|
||||
|
||||
|
||||
Reference in new issue
Block a user