action
Some checks failed
Deploy to Server / deploy (push) Has been cancelled

This commit is contained in:
jeremygan2021
2026-03-02 13:01:04 +08:00
parent 0d140cd75c
commit a1e8c042ca
3 changed files with 7 additions and 5 deletions

View File

@@ -39,6 +39,7 @@ jobs:
# 停止容器并删除同名镜像
# --rmi local: 删除服务构建的镜像
echo "123quant-speed" | sudo -S docker compose down --rmi local
echo "123quant-speed" | sudo -S docker rmi epaper_server:latest || true
# 启动服务
echo "123quant-speed" | sudo -S docker compose up -d
echo "123quant-speed" | sudo -S docker compose up -d --build

View File

@@ -1,10 +1,11 @@
services:
# 主应用服务
luna-app:
epaper_server:
image: epaper_server:latest
build:
context: .
dockerfile: Dockerfile
container_name: luna-app
container_name: epaper_server
ports:
- "8199:8199"
volumes:

View File

@@ -17,9 +17,9 @@ SERVER_HOST="6.6.6.66" # 服务器IP地址
SERVER_USER="ubuntu" # 服务器用户名
SERVER_PASSWORD="qweasdzxc1" # 服务器密码
SERVER_PORT="22" # SSH端口默认22
IMAGE_NAME="epage_server" # Docker镜像名称
IMAGE_NAME="epaper_server" # Docker镜像名称
IMAGE_TAG="latest" # Docker镜像标签
CONTAINER_NAME="epage_server-container" # 容器名称
CONTAINER_NAME="epaper_server-container" # 容器名称
LOCAL_PORT="8199" # 本地端口
CONTAINER_PORT="8199" # 容器端口
TAR_FILE="${IMAGE_NAME}-${IMAGE_TAG}.tar" # 压缩包文件名