Skip to content

Commit

Permalink
Update compose.md
Browse files Browse the repository at this point in the history
  • Loading branch information
donknap authored Oct 10, 2024
1 parent 7ef3f11 commit ae08fc2
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions docs/zh-cn/install/compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

> 国内镜像地址: ccr.ccs.tencentyun.com/dpanel/dpanel:latest
> 如果提示网络已经存在,请先删除 docker network rm dpanel-local
```
services:
web:
Expand All @@ -21,4 +19,37 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- dpanel:/dpanel
```
dpanel-plugin-explorer: # 该镜像为 dpanel 的文件浏览器,隔离特权
image: alpine:latest
container_name: dpanel-plugin-explorer
restart: unless-stopped
privileged: true
pid: host
command: ["sh", "-c", "tail -f /dev/null"]
```

#### lite 版

```
services:
web:
image: dpanel/dpanel:lite
container_name: dpanel
restart: always
ports:
- 8807:8080
environment:
APP_NAME: dpanel # 请保持此名称与 container_name 一致
INSTALL_USERNAME: admin
INSTALL_PASSWORD: admin
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- dpanel:/dpanel
dpanel-plugin-explorer: # 该镜像为 dpanel 的文件浏览器,隔离特权
image: alpine:latest
container_name: dpanel-plugin-explorer
restart: unless-stopped
privileged: true
pid: host
command: ["sh", "-c", "tail -f /dev/null"]
```

0 comments on commit ae08fc2

Please sign in to comment.