修改SimpleX Docker部署过程需要证书启动问题
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2026-06-15 21:03:20 +08:00
parent 46124ba752
commit 5c9450519b

View File

@@ -4,6 +4,8 @@
[官网](https://simplex.chat/) [Github安装文档](https://github.com/simplex-chat/simplex-chat/blob/stable/docs/SERVER.md) [客户端下载](https://simplex.chat/downloads/)
[Docker部署Smp官方文档](https://simplex.chat/docs/server.html#docker-container) [Docker部署Xftp官方文档](https://simplex.chat/docs/xftp-server.html#docker-container)
| 服务器服务 | IP |
| :-------------------------------------: | :----------: |
| simplex-smp-server、simplex-xftp-server | 192.168.1.10 |
@@ -22,6 +24,9 @@
cat << EOF >> .env
SIMPLEX_ADDR=192.168.1.10
XFTP_ADDR=192.168.1.10
QUOTA=20gb
# SIMPLEX_PASS=""
# XFTP_PASS=""
EOF
```
@@ -33,51 +38,51 @@
内容如下
```bash
version: '3'
```yaml
networks:
simplex:
services:
simplex-smp-server:
image: simplexchat/smp-server:latest
container_name: simplex-smp-server
restart: always
ports:
- "5223:5223"
image: ${SIMPLEX_IMAGE:-simplexchat/smp-server:latest}
environment:
WEB_MANUAL: ${WEB_MANUAL:-1}
ADDR: ${SIMPLEX_ADDR?"Please specify the domain."}
PASS: ${SIMPLEX_PASS:-}
volumes:
- /data/simplex/smp/config:/etc/opt/simplex:Z
- /data/simplex/smp/logs:/var/opt/simplex:Z
environment:
- ADDR=${SIMPLEX_ADDR}
# - PASS=""
ports:
- "5223:5223"
networks:
- simplex
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: always
simplex-xftp-server:
image: simplexchat/xftp-server:latest
container_name: simplex-xftp-server
ports:
- "443:443"
restart: always
image: ${SIMPLEX_XFTP_IMAGE:-simplexchat/xftp-server:latest}
environment:
ADDR: ${XFTP_ADDR?"Please specify the domain."}
QUOTA: ${QUOTA?"Please specify disk quota."}
PASS: ${XFTP_PASS:-}
volumes:
- /data/simplex/xftp/config:/etc/opt/simplex-xftp:Z
- /data/simplex/xftp/logs:/var/opt/simplex-xftp:Z
- /data/simplex/xftp/files:/srv/xftp:X
environment:
- ADDR=${XFTP_ADDR}
- QUOTA=50gb
ports:
- 443:443
networks:
- simplex
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: always
```
4. 启动
@@ -103,9 +108,7 @@
> 链接信息格式为:
>
> ```bash
> smp://密钥=@访问地址
> smp://密钥=:密码@访问地址
> xftp://密钥=:密码@访问地址
> ```
**问题记录**
`simplex-xftp-server` 端口号为 443 会导致有些人的端口冲突,所以我们可以修改 Docker-Compose 文件内的对外端口比如 "5233:443"启动后我们客户端链接时需要在IP或域名后添加端口号。如smp://密钥=@访问地址:5233