volumes 用绝对路径

This commit is contained in:
tongji 2022-01-02 21:07:56 +08:00
parent 55b476b306
commit a0ff3671ec
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ services:
# 数据卷
volumes:
# 映射主机./conf.d目录到容器/etc/nginx/conf.d目录
- "$PWD/nginx/conf.d:/etc/nginx/conf.d"
- "/srv/dco/web/nginx/conf.d:/etc/nginx/conf.d"
- "/srv/hd/pub/web/80:/var/www/html"
networks:
- web_net