fix:相机优化
This commit is contained in:
@@ -152,6 +152,33 @@ services:
|
||||
- ./.prettierignore:/.prettierignore:ro
|
||||
- frontend_node_modules:/app/node_modules
|
||||
|
||||
# 打手端专用 dev server:同一份代码,只把「打手端 hostname」设成 IP,
|
||||
# 由 Caddy 的 8080 端口反代过来(前端按 hostname 判站点,见 utils/site.ts)。
|
||||
frontend-worker:
|
||||
image: ${BASE_REGISTRY:-docker.m.daocloud.io}/library/node:22-bookworm-slim
|
||||
working_dir: /app
|
||||
restart: unless-stopped
|
||||
logging: *json-log-rotation
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
command: >-
|
||||
sh -lc
|
||||
"[ -d node_modules/vite ] || npm install --no-fund --no-audit;
|
||||
npm run dev -- --host 0.0.0.0 --port 5174"
|
||||
environment:
|
||||
TZ: ${TZ:-Asia/Shanghai}
|
||||
CHOKIDAR_USEPOLLING: "true"
|
||||
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
|
||||
VITE_API_TARGET: http://backend:3000
|
||||
VITE_ALLOWED_HOSTS: ${VITE_ALLOWED_HOSTS:-localhost,127.0.0.1}
|
||||
VITE_WORKER_SITE_URL: ${WORKER_SITE_ADDR_IP:-http://192.168.10.8}
|
||||
volumes:
|
||||
- ./apps/frontend:/app
|
||||
- ./.prettierrc.json:/.prettierrc.json:ro
|
||||
- ./.prettierignore:/.prettierignore:ro
|
||||
- frontend_worker_node_modules:/app/node_modules
|
||||
|
||||
web:
|
||||
image: ${BASE_REGISTRY:-docker.m.daocloud.io}/library/caddy:2-alpine
|
||||
restart: unless-stopped
|
||||
@@ -161,9 +188,13 @@ services:
|
||||
condition: service_healthy
|
||||
frontend:
|
||||
condition: service_started
|
||||
frontend-worker:
|
||||
condition: service_started
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
# 打手端(IP 访问):http://<IP>:8080/
|
||||
- "${WORKER_LAN_PORT:-8080}:8080"
|
||||
environment:
|
||||
TZ: ${TZ:-Asia/Shanghai}
|
||||
volumes:
|
||||
@@ -174,3 +205,4 @@ volumes:
|
||||
minio_dev_data:
|
||||
backend_node_modules:
|
||||
frontend_node_modules:
|
||||
frontend_worker_node_modules:
|
||||
|
||||
Reference in New Issue
Block a user