feat: 加入 nginx 外部网络,支持反向代理
This commit is contained in:
Vendored
+1
@@ -30,6 +30,7 @@ pipeline {
|
||||
mkdir -p /data/${APP_NAME}
|
||||
docker run -d \
|
||||
--name ${APP_NAME} \
|
||||
--network nginx \
|
||||
-p 3000:3000 \
|
||||
-v /data/${APP_NAME}:/app/data \
|
||||
-e DATABASE_URL=file:/app/data/prod.db \
|
||||
|
||||
@@ -10,3 +10,9 @@ services:
|
||||
environment:
|
||||
- DATABASE_URL=file:/app/data/prod.db
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- nginx
|
||||
|
||||
networks:
|
||||
nginx:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user