全面大升级
This commit is contained in:
@@ -19,16 +19,17 @@ chmod +x deploy.sh
|
||||
|
||||
```bash
|
||||
# 构建
|
||||
docker build -t your-registry/chatroom:latest .
|
||||
docker build -t zhengdushi/chatroom:latest .
|
||||
|
||||
# 推送(示例:Docker Hub / 阿里云 ACR)
|
||||
docker push your-registry/chatroom:latest
|
||||
docker push zhengdushi/chatroom:latest
|
||||
```
|
||||
|
||||
### 2. 服务器拉取并部署
|
||||
|
||||
```bash
|
||||
./deploy.sh your-registry/chatroom:latest
|
||||
cd ~/chatroom
|
||||
docker compose pull app && docker compose up -d
|
||||
```
|
||||
|
||||
## 三、自动更新部署
|
||||
|
||||
Reference in New Issue
Block a user