refactor: serve production frontends from host nginx
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user