Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
donknap committed Jan 3, 2025
1 parent 76c40de commit 7b4ed33
Showing 1 changed file with 0 additions and 80 deletions.
80 changes: 0 additions & 80 deletions docs/zh-cn/install/compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite

#### 使用宿主机目录挂载 /dpanel 目录

需要挂载 compose 目录时使用此文件创建

```
services:
dpanel:
Expand All @@ -20,18 +18,9 @@ services:
- 8807:8080
environment:
APP_NAME: dpanel # 请保持此名称与 container_name 一致
INSTALL_USERNAME: admin
INSTALL_PASSWORD: admin
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/dpanel:/dpanel # 将 /home/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 版
Expand All @@ -46,76 +35,7 @@ services:
- 8807:8080
environment:
APP_NAME: dpanel # 请保持此名称与 container_name 一致
INSTALL_USERNAME: admin
INSTALL_PASSWORD: admin
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/dpanel:/dpanel # 将 /home/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"]
```


#### 使用存储卷挂载 /dpanel 目录


```
services:
dpanel:
image: dpanel/dpanel:latest
container_name: dpanel # 更改此名称后,请同步修改下方 APP_NAME 环境变量
restart: always
ports:
- 80:80
- 443:443
- 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"]
volumes:
dpanel:
```

#### lite 版

```
services:
dpanel:
image: dpanel/dpanel:lite
container_name: dpanel # 更改此名称后,请同步修改下方 APP_NAME 环境变量
restart: unless-stopped
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"]
volumes:
dpanel:
```

0 comments on commit 7b4ed33

Please sign in to comment.