feat: Z34b restore-by-host + harden web nginx DNS race

Add HMAC restore-by-host for phone-less rebind; resolve gateway at request time and recreate web after stack up.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-08-07 00:16:08 +08:00
parent f0fcc1fbda
commit e571e98387
12 changed files with 492 additions and 30 deletions

View File

@@ -113,6 +113,7 @@ services:
web:
image: ${DOCKER_BASE_REGISTRY:-docker.m.daocloud.io/library}/nginx:1.27-alpine
hostname: web
restart: unless-stopped
depends_on:
- gateway
ports:
@@ -123,3 +124,7 @@ services:
- ./web/nginx.conf:/etc/nginx/conf.d/default.conf:ro,Z
environment:
TZ: Asia/Shanghai
networks:
default:
aliases:
- web