Docker Windows Compose Traefik


I am trying to install Traefik on my docker system (Docker for Windows with gui and Portainer). Now I should create the traefik.yml and transfer it via volumes.

This is what the tutorial says:

  - ./data/traefik.yml:/traefik.yml:ro

I tried to create a volume called traefik


Path in the Windows machine to the Volumes folder:


How can I retrieve the traefik.yml file in this volume now? Unfortunately, that's not how it works:

   - traefik/traefik.yml:/traefik.yml:ro

Best regards

I recommend to check the Docker docs for volumes and Docker Compose docs for volumes for an explanation of the difference and how to use it.