fix: web dist mount readable under Podman/SELinux

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-07-31 11:44:29 +08:00
parent 4ca82fb58a
commit 632057c857

View File

@@ -101,7 +101,8 @@ services:
ports: ports:
- "${AIJZ_WEB_PUBLISH:-127.0.0.1:5173}:80" - "${AIJZ_WEB_PUBLISH:-127.0.0.1:5173}:80"
volumes: volumes:
- ./web/dist:/usr/share/nginx/html:ro # :Z 供 Podman/SELinux 可读;纯 Docker 也兼容
- ./web/nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./web/dist:/usr/share/nginx/html:ro,Z
- ./web/nginx.conf:/etc/nginx/conf.d/default.conf:ro,Z
environment: environment:
TZ: Asia/Shanghai TZ: Asia/Shanghai