docker-compose.dev.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 cron by default as it uses higher CPU, enable if needed
  35. #cron:
  36. # volumes: *appvolumes
  37. # Disabling selenium by default as it is not required for all use cases
  38. #selenium:
  39. # image: selenium/standalone-chrome-debug:3.8.1
  40. # ports:
  41. # - "5900:5900"
  42. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  43. # Replace the "magento2-composer.loc" with the url of your site
  44. # extra_hosts:
  45. # - "magento2.test:172.17.0.1"
  46. # links:
  47. # - app