docker-compose.dev.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Mark Shust's Docker Configuration for Magento
  2. # (https://github.com/markshust/docker-magento)
  3. #
  4. # Version 30.0.2
  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/var/log:/var/www/html/var/log:delegated
  17. #- ./src/var/report:/var/www/html/var/report:delegated
  18. phpfpm:
  19. volumes: *appvolumes
  20. # Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
  21. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  22. #extra_hosts:
  23. # - "host.docker.internal:IP"
  24. mailhog:
  25. image: mailhog/mailhog
  26. ports:
  27. - "1025"
  28. - "8025:8025"
  29. # Disabling cron by default as it uses higher CPU, enable if needed
  30. #cron:
  31. # volumes: *appvolumes