How to map a docker containers directory to the host with docker-compose?
问题 Given following docker-compose.yml setup: version: '3.7' services: reverse: container_name: nginx-reverse-proxy hostname: nginx-reverse-proxy image: nginx:stable ports: - 80:80 - 433:433 volumes: - type: bind source: ./config target: /etc/nginx consistency: consistent Results in ./config the folder beeing mapped to the container nginx-reverse-proxy and therefore in an empty /etc/nginx directory on the container. As stated in my question the goal is to see the content, the container (from the