docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

Mount Volumes with Docker on Windows 10 Client

Open FloWord opened this issue 7 years ago • 1 comments

I`m new with Docker, maybe somebody can help. I can not mount my /var/www/html folder to C:/Docker/magento2/m4y on my windows 10 client.

Thanks for any help.

My docker-compose.yml

version: '3.0' services: web: image: alexcheng/magento2 ports: - "80:80" links: - db env_file: - env volumes: - magento-data:/var/www/html - C:/Docker/magento2/m4y:/var/www/html/app/code
db: image: mysql:5.6.23 volumes: - db-data:/var/lib/mysql/data env_file: - env phpmyadmin: image: phpmyadmin/phpmyadmin ports: - "8580:80" links: - db
volumes: db-data: magento-data:

windows docker docker-settings

FloWord avatar Oct 26 '18 13:10 FloWord

This working for me now:

version: '3.0' services: web: image: alexcheng/magento2 ports: - "80:80" links: - db env_file: - env
volumes: - c:/Docker/magento2/m4y:/var/www/html db: image: mysql:5.6.23 volumes: - db-data:/var/lib/mysql/data env_file: - env phpmyadmin: image: phpmyadmin/phpmyadmin ports: - "8580:80" links: - db
volumes: db-data:

FloWord avatar Nov 01 '18 07:11 FloWord