ERROR: for lemp_nginx_1 Cannot start service nginx: b'OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/maria/Documents/docker/LEMP/nginx/default\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/49e54240cf9d2f42c9a67a48b6f21458171ac9c7d2748c8d873c2b2be2e67333/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/49e54240cf9d2f42c9a67a48b6f21458171ac9c7d2748c8d873c2b2be2e67333/merged/etc/nginx/sites-enabled/default\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'
version: '2'
services :
nginx:
image: tutum/nginx
ports:
- "80:80"
links:
- phpfpm
volumes:
- ./nginx/default:/etc/nginx/sites-available/default
- ./nginx/default:/etc/nginx/sites-enabled/default
- ./html:/usr/share/nginx/html
- ./logs/nginx-error.log:/var/log/nginx/error.log
- ./logs/nginx-access.log:/var/log/nginx/access.log
phpfpm:
build:
context: ./php-fpm
dockerfile: Dockerfile
container_name: 56-php-fpm
links:
- mysql
volumes:
- ./html:/usr/share/nginx/html
- ./php-fpm/example.ini:/usr/local/etc/php/conf.d/custom.ini
mysql:
image: mysql:5.6
container_name: 56-mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=test
- MYSQL_USER=tester
- MYSQL_PASSWORD=password
volumes:
- ./databases:/var/lib/mysql
- ./logs/mysql:/var/log/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
ports:
- 8183:80
environment:
MYSQL_USERNAME: tester
MYSQL_ROOT_PASSWORD: password
PMA_ARBITRARY: 1
- ./nginx/default:/etc/nginx/sites-available/default
- ./nginx/default:/etc/nginx/sites-enabled/default
- ./nginx/sites-available:/etc/nginx/sites-available
- ./nginx/sites-enabled:/etc/nginx/sites-enabled