1
0
Fork 0

😁继续完善两个应用

This commit is contained in:
LiuShen 2025-06-25 14:55:29 +08:00
parent 80409a36c5
commit 4d426f90a3
3 changed files with 2 additions and 61 deletions

View File

@ -21,65 +21,6 @@
------
### 🚀 部署方式
**脚本一键部署(推荐)**
```
bash
复制编辑
curl -fsSL "http://echo.soopy.cn/install.sh" -o install_ech0.sh && bash install_ech0.sh
```
**Docker 部署**
```
bash复制编辑docker run -d \
--name ech0 \
-p 6277:6277 \
-v /opt/ech0/data:/app/data \
-e JWT_SECRET="你的 secret" \
sn0wl1n/ech0:latest
```
*首次注册用户将自动成为管理员;数据保存在映射目录*
**Docker Compose 部署**
把官方 `docker-compose.yml` 放入目录后,执行:
```
bash
复制编辑
docker-compose up -d
```
------
### 🔄 升级方式
- **Docker CLI**
```
bash复制编辑docker stop ech0
docker rm ech0
docker pull sn0wl1n/ech0:latest
docker run ... # 启动新容器
```
- **Docker Compose**
```
bash复制编辑docker-compose pull
docker-compose up -d --force-recreate
docker image prune -f
```
------
### 🧠 常见问题FAQ
1. **什么是 Ech0** 一款轻量级的开源平台,专为快速发布想法和链接设计。

View File

@ -20,7 +20,7 @@ additionalProperties:
- default: "rTxo391YxfvU2j"
envKey: PANEL_MOMENTS_JWT_KEY
labelEn: JWT Secret
labelZh: 登录密钥
labelZh: JWT 安全密钥
label:
en: JWT Secret
ja: JWTシークレット

View File

@ -5,7 +5,7 @@ services:
container_name: ${CONTAINER_NAME}
restart: always
environment:
port: ${PANEL_APP_PORT_HTTP}
port: 3000
JWT_KEY: ${PANEL_MOMENTS_JWT_KEY}
CORS_ORIGIN: ${PANEL_MOMENTS_CORS_ORIGIN}
ENABLE_SWAGGER: ${PANEL_MOMENTS_ENABLE_SWAGGER}