2
0

docker-compose.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 40.0.0
  5. ## To use SSH, see https://github.com/markshust/docker-magento#ssh
  6. ## Linux users, see https://github.com/markshust/docker-magento#linux
  7. version: "3"
  8. services:
  9. app:
  10. image: markoshust/magento-nginx:1.18-5
  11. ports:
  12. - "80:8000"
  13. - "443:8443"
  14. links:
  15. - db
  16. - phpfpm
  17. volumes: &appvolumes
  18. - ~/.composer:/var/www/.composer:cached
  19. - appdata:/var/www/html
  20. - sockdata:/sock
  21. - ssldata:/etc/nginx/certs
  22. phpfpm:
  23. image: markoshust/magento-php:7.4-fpm-10
  24. links:
  25. - db
  26. volumes: *appvolumes
  27. db:
  28. image: mariadb:10.4
  29. command: --max_allowed_packet=64M
  30. ports:
  31. - "3306:3306"
  32. env_file: env/db.env
  33. volumes:
  34. - dbdata:/var/lib/mysql
  35. redis:
  36. image: redis:5.0-alpine
  37. elasticsearch:
  38. image: markoshust/magento-elasticsearch:7.9.3-1
  39. ports:
  40. - "9200:9200"
  41. - "9300:9300"
  42. environment:
  43. - "discovery.type=single-node"
  44. ## Set custom heap size to avoid memory errors
  45. - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
  46. ## Avoid test failures due to small disks
  47. ## More info at https://github.com/markshust/docker-magento/issues/488
  48. - "cluster.routing.allocation.disk.threshold_enabled=false"
  49. - "index.blocks.read_only_allow_delete"
  50. rabbitmq:
  51. image: rabbitmq:3.8.22-management-alpine
  52. ports:
  53. - "15672:15672"
  54. - "5672:5672"
  55. volumes:
  56. - rabbitmqdata:/var/lib/rabbitmq
  57. environment:
  58. - RABBITMQ_VM_MEMORY_HIGH_WATERMARK=1GB
  59. mailcatcher:
  60. image: sj26/mailcatcher
  61. ports:
  62. - "1080:1080"
  63. ## Disabling selenium by default as it is not required for all use cases.
  64. ## For extra_hosts, replace "magento.test" with the URL of your site,
  65. ## and also replace 172.17.0.1 with the result of:
  66. ## docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  67. #selenium:
  68. # image: selenium/standalone-chrome-debug:3.8.1
  69. # ports:
  70. # - "5900:5900"
  71. # links:
  72. # - app
  73. # extra_hosts:
  74. # - "magento.test:172.17.0.1"
  75. volumes:
  76. appdata:
  77. dbdata:
  78. rabbitmqdata:
  79. sockdata:
  80. ssldata: