From 3353d1abd51e09ad10e95450c884a47f6c91551a Mon Sep 17 00:00:00 2001 From: hajimi Date: Mon, 3 Aug 2026 04:43:10 +0800 Subject: [PATCH] fix: serve production frontends from server public builds --- docker/docker-compose.prod.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 8536e21..52ecd1a 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -99,15 +99,11 @@ services: logging: *default-logging admin: - image: sport-era-prod-admin:local - build: - context: ../admin - dockerfile: ../docker/Dockerfile.admin - args: - VITE_APP_BASE_URL: ${PROD_API_BASE_URL:-https://api.sbnews.net} + image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1 restart: unless-stopped network_mode: host volumes: + - ${SERVER_DIR:-../server}/public/admin:/usr/share/nginx/html:ro - ./config/nginx/static/admin.conf:/etc/nginx/conf.d/default.conf:ro healthcheck: test: @@ -120,15 +116,11 @@ services: logging: *default-logging uniapp-h5: - image: sport-era-prod-uniapp-h5:local - build: - context: ../uniapp - dockerfile: ../docker/Dockerfile.uniapp-h5 - args: - VITE_APP_BASE_URL: ${PROD_API_BASE_URL:-https://api.sbnews.net} + image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1 restart: unless-stopped network_mode: host volumes: + - ${SERVER_DIR:-../server}/public/mobile:/usr/share/nginx/html:ro - ./config/nginx/static/uniapp-h5.conf:/etc/nginx/conf.d/default.conf:ro healthcheck: test: