refactor: serve production frontends from host nginx

This commit is contained in:
hajimi
2026-08-03 04:46:14 +08:00
parent 3353d1abd5
commit 2f933ef48f
-34
View File
@@ -97,37 +97,3 @@ services:
retries: 5
start_period: 10s
logging: *default-logging
admin:
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:
- CMD-SHELL
- curl -fsS http://127.0.0.1:5176/healthz | grep -q '^ok$'
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
logging: *default-logging
uniapp-h5:
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:
- CMD-SHELL
- curl -fsS http://127.0.0.1:5177/healthz | grep -q '^ok$'
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
logging: *default-logging