docker-compose.dev.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Mark Shust's Docker Configuration for Magento
  2. # (https://github.com/markshust/docker-magento)
  3. #
  4. # Version 36.0.1
  5. version: "3"
  6. services:
  7. app:
  8. volumes: &appvolumes
  9. # Host mounts with performance penalty, only put what is necessary here
  10. - ./src/app/code:/var/www/html/app/code:cached
  11. - ./src/app/design:/var/www/html/app/design:cached
  12. - ./src/app/etc:/var/www/html/app/etc:cached
  13. - ./src/composer.json:/var/www/html/composer.json:cached
  14. - ./src/composer.lock:/var/www/html/composer.lock:cached
  15. - ./src/nginx.conf.sample:/var/www/html/nginx.conf:cached
  16. #- ./src/auth.json:/var/www/html/auth.json:cached
  17. #- ./src/m2-hotfixes:/var/www/html/m2-hotfixes:cached
  18. #- ./src/patches:/var/www/html/patches:cached
  19. #- ./src/var/log:/var/www/html/var/log:cached
  20. #- ./src/var/report:/var/www/html/var/report:cached
  21. # To sync your SSH to the container, uncomment the following line:
  22. #- ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
  23. # Linux only: remove the above lines and mount the entire src directory with:
  24. #- ./src:/var/www/html:cached
  25. phpfpm:
  26. volumes: *appvolumes
  27. # Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
  28. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  29. #extra_hosts:
  30. # - "host.docker.internal:IP"
  31. mailhog:
  32. image: mailhog/mailhog
  33. ports:
  34. - "1025"
  35. - "8025:8025"
  36. # Disabling cron by default as it uses higher CPU, enable if needed
  37. #cron:
  38. # volumes: *appvolumes