2
0

docker-compose.dev.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Mark Shust's Docker Configuration for Magento
  2. # (https://github.com/markshust/docker-magento)
  3. #
  4. # Version 31.0.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:delegated
  11. - ./src/app/design:/var/www/html/app/design:delegated
  12. - ./src/app/etc:/var/www/html/app/etc:delegated
  13. - ./src/composer.json:/var/www/html/composer.json:delegated
  14. - ./src/composer.lock:/var/www/html/composer.lock:delegated
  15. - ./src/nginx.conf.sample:/var/www/html/nginx.conf:delegated
  16. #- ./src/auth.json:/var/www/html/auth.json:delegated
  17. #- ./src/m2-hotfixes:/var/www/html/m2-hotfixes:delegated
  18. #- ./src/patches:/var/www/html/patches:delegated
  19. #- ./src/var/log:/var/www/html/var/log:delegated
  20. #- ./src/var/report:/var/www/html/var/report:delegated
  21. # Linux only: remove the above lines and mount the entire src directory with:
  22. #- ./src:/var/www/html:delegated
  23. phpfpm:
  24. volumes: *appvolumes
  25. # Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
  26. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  27. #extra_hosts:
  28. # - "host.docker.internal:IP"
  29. mailhog:
  30. image: mailhog/mailhog
  31. ports:
  32. - "1025"
  33. - "8025:8025"
  34. # Disabling cron by default as it uses higher CPU, enable if needed
  35. #cron:
  36. # volumes: *appvolumes