feat: 加入 nginx 外部网络,支持反向代理

This commit is contained in:
2026-02-25 14:25:19 +08:00
parent d2e0b2a1f9
commit 6ceedddce9
2 changed files with 7 additions and 0 deletions
Vendored
+1
View File
@@ -30,6 +30,7 @@ pipeline {
mkdir -p /data/${APP_NAME} mkdir -p /data/${APP_NAME}
docker run -d \ docker run -d \
--name ${APP_NAME} \ --name ${APP_NAME} \
--network nginx \
-p 3000:3000 \ -p 3000:3000 \
-v /data/${APP_NAME}:/app/data \ -v /data/${APP_NAME}:/app/data \
-e DATABASE_URL=file:/app/data/prod.db \ -e DATABASE_URL=file:/app/data/prod.db \
+6
View File
@@ -10,3 +10,9 @@ services:
environment: environment:
- DATABASE_URL=file:/app/data/prod.db - DATABASE_URL=file:/app/data/prod.db
restart: unless-stopped restart: unless-stopped
networks:
- nginx
networks:
nginx:
external: true