docker-compose.dev.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Mark Shust's Docker Configuration for Magento (https://github.com/markshust/docker-magento)
  2. # Version 26.0.0
  3. version: "3"
  4. services:
  5. app:
  6. volumes: &appvolumes
  7. # Host mounts with performance penalty, only put what is necessary here
  8. - ./src/app/code:/var/www/html/app/code:delegated
  9. - ./src/app/design:/var/www/html/app/design:delegated
  10. - ./src/app/etc:/var/www/html/app/etc:delegated
  11. - ./src/composer.json:/var/www/html/composer.json:delegated
  12. - ./src/composer.lock:/var/www/html/composer.lock:delegated
  13. - ./src/nginx.conf.sample:/var/www/html/nginx.conf:delegated
  14. #- ./src/var/log:/var/www/html/var/log:delegated
  15. #- ./src/var/report:/var/www/html/var/report:delegated
  16. phpfpm:
  17. volumes: *appvolumes
  18. # Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
  19. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  20. #extra_hosts:
  21. # - "host.docker.internal:IP"
  22. mailhog:
  23. image: mailhog/mailhog
  24. ports:
  25. - "1025"
  26. - "8025:8025"
  27. # Disabling cron by default as it uses higher CPU, enable if needed
  28. #cron:
  29. # volumes: *appvolumes