docker-compose.dev.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Mark Shust's Docker Configuration for Magento
  2. # (https://github.com/markshust/docker-magento)
  3. #
  4. # Version 39.1.0
  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 (except nginx.conf line) and mount the entire src directory with:
  24. #- ./src:/var/www/html:cached
  25. phpfpm:
  26. volumes: *appvolumes
  27. ## Linux users, see https://github.com/markshust/docker-magento#linux for updates needed below
  28. #extra_hosts:
  29. # - "host.docker.internal:IP"
  30. mailcatcher:
  31. image: sj26/mailcatcher
  32. ports:
  33. - "1080:1080"
  34. # Disabling selenium by default as it is not required for all use cases
  35. #selenium:
  36. # image: selenium/standalone-chrome-debug:3.8.1
  37. # ports:
  38. # - "5900:5900"
  39. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  40. # Replace the "magento2-composer.loc" with the url of your site
  41. # extra_hosts:
  42. # - "magento2.test:172.17.0.1"
  43. # links:
  44. # - app