# root directory ROOT_PATH=./services # Project Path WWW_PATH=./www # nginx NGINX_WWW_DIR=$(WWW_PATH)
Error: named volume “www.path:/data/www.rw” isused in service “nginx” but no declaration was found in the volumes section.
The constant defined in the. env file is invalid, how can it be made valid?
The brackets here should be removed.
Or change to braces
However, according to docker volume mapping rules, it is best to use absolute paths, that is
-v should only accept absolute path.