mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-06 20:42:52 +08:00
build(docker): 更新 docker-compose配置
- 将 Nginx 容器的端口映射改为使用环境变量 APP_PORT- 移除 frontend 服务的依赖
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
BACKEND_PORT=8001
|
||||
FRONTEND_PORT=3015
|
||||
BACKEND_HOST=0.0.0.0 # 默认为 0.0.0.0,表示监听所有 IP 地址 不建议动
|
||||
|
||||
APP_PORT= 3015 # docker 部署时用
|
||||
# 前端访问后端用(生产环境建议写公网或宿主机 IP)
|
||||
VITE_API_BASE_URL=http://127.0.0.1:8001
|
||||
VITE_SCREENSHOT_BASE_URL=http://127.0.0.1:8001/static/screenshots
|
||||
|
||||
@@ -29,7 +29,7 @@ services:
|
||||
container_name: bilinote-nginx
|
||||
image: nginx:1.25-alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
- "${APP_PORT}:80"
|
||||
volumes:
|
||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user