how to disable the varnish for docker2 magento 2 code example
Example: configure and connect varnish docker magento 2
docker-compose run --rm deploy magento-command config:set system/full_page_cache/caching_application 2 --lock-env
docker-compose run --rm deploy magento-command setup:config:set --http-cache-hosts=varnish