chore(docker): 指定容器内目录是可读可写的

This commit is contained in:
2025-11-29 10:39:30 +08:00
parent e2d6a02860
commit 1fc9a39ffe

View File

@@ -61,7 +61,12 @@ services:
- "${NGINX_PORT:-80}:80"
- "${NGINX_SSL_PORT:-443}:443"
volumes:
# 挂载项目代码到 Nginx 容器中
- ./src:/var/www/html:rw
# 特殊指定目录是可写的
- /var/www/html/runtime/:rw
- /var/www/html/upload/:rw
- /var/www/html/cache/:rw
# 更新下载源列表以加速apt-get
- ./docker/debian/sources.list:/etc/apt/sources.list:ro
# 创建临时目录