2
0

docker-compose.dev.yml 1.2 KB

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