docker

docker-compose: ERROR: but no declaration was found in the volumes section

nginx logó
Probléma:

$ sudo docker-compose up
ERROR: Named volume "nginx:/etc/nginx/conf.d:rw" is used in service "nginx" but no declaration was found in the volumes section.

Megoldás: