fix: 端口改为 3002,修复部署冲突

3001 已被占用;同时简化容器清理为 docker rm -f。
This commit is contained in:
2026-02-25 18:26:07 +08:00
committed by 田东生
parent bfed5cc2a2
commit ba0ecb0bc2
2 changed files with 3 additions and 4 deletions
Vendored
+2 -3
View File
@@ -25,14 +25,13 @@ pipeline {
stage('Deploy') {
steps {
sh """
docker stop ${APP_NAME} || true
docker rm ${APP_NAME} || true
docker rm -f ${APP_NAME} || true
mkdir -p /data/${APP_NAME}
chown 1001:1001 /data/${APP_NAME}
docker run -d \
--name ${APP_NAME} \
--network nginx \
-p 3001:3000 \
-p 3002:3000 \
-v /data/${APP_NAME}:/app/data \
-e DATABASE_URL=file:/app/data/prod.db \
--restart unless-stopped \
+1 -1
View File
@@ -4,7 +4,7 @@ services:
image: impulse-jail:latest
container_name: impulse-jail
ports:
- "3001:3000"
- "3002:3000"
volumes:
- /data/impulse-jail:/app/data
environment: