2
0

docker-compose.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 41.0.1
  5. ## To use SSH, see https://github.com/markshust/docker-magento#ssh
  6. ## Linux users, see https://github.com/markshust/docker-magento#linux
  7. ## If you changed the default Docker network, you may need to replace
  8. ## 172.17.0.1 in this file with the result of:
  9. ## docker network inspect bridge --format='{{(index .IPAM.Config 0).Gateway}}'
  10. version: "3"
  11. services:
  12. app:
  13. image: markoshust/magento-nginx:1.18-5
  14. ports:
  15. - "80:8000"
  16. - "443:8443"
  17. volumes: &appvolumes
  18. - ~/.composer:/var/www/.composer:cached
  19. - ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
  20. - ~/.ssh/known_hosts:/var/www/.ssh/known_hosts:cached
  21. - appdata:/var/www/html
  22. - sockdata:/sock
  23. - ssldata:/etc/nginx/certs
  24. extra_hosts: &appextrahosts
  25. ## M1 Mac support to fix Docker delay, see #566
  26. - "app:172.17.0.1"
  27. - "phpfpm:172.17.0.1"
  28. - "db:172.17.0.1"
  29. - "redis:172.17.0.1"
  30. - "elasticsearch:172.17.0.1"
  31. - "rabbitmq:172.17.0.1"
  32. ## Selenium support, replace "magento.test" with URL of your site
  33. - "magento.test:172.17.0.1"
  34. phpfpm:
  35. image: markoshust/magento-php:7.4-fpm-11
  36. volumes: *appvolumes
  37. extra_hosts: *appextrahosts
  38. db:
  39. image: mariadb:10.4
  40. command: --max_allowed_packet=64M
  41. ports:
  42. - "3306:3306"
  43. env_file: env/db.env
  44. volumes:
  45. - dbdata:/var/lib/mysql
  46. extra_hosts: *appextrahosts
  47. redis:
  48. image: redis:5.0-alpine
  49. ports:
  50. - "6379:6379"
  51. extra_hosts: *appextrahosts
  52. elasticsearch:
  53. image: markoshust/magento-elasticsearch:7.9.3-1
  54. ports:
  55. - "9200:9200"
  56. - "9300:9300"
  57. environment:
  58. - "discovery.type=single-node"
  59. ## Set custom heap size to avoid memory errors
  60. - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
  61. ## Avoid test failures due to small disks
  62. ## More info at https://github.com/markshust/docker-magento/issues/488
  63. - "cluster.routing.allocation.disk.threshold_enabled=false"
  64. - "index.blocks.read_only_allow_delete"
  65. extra_hosts: *appextrahosts
  66. rabbitmq:
  67. image: rabbitmq:3.8.22-management-alpine
  68. ports:
  69. - "15672:15672"
  70. - "5672:5672"
  71. volumes:
  72. - rabbitmqdata:/var/lib/rabbitmq
  73. environment:
  74. - RABBITMQ_VM_MEMORY_HIGH_WATERMARK=1GB
  75. extra_hosts: *appextrahosts
  76. mailcatcher:
  77. image: sj26/mailcatcher
  78. ports:
  79. - "1080:1080"
  80. extra_hosts: *appextrahosts
  81. ## Selenium support, uncomment to enable
  82. #selenium:
  83. # image: selenium/standalone-chrome-debug:3.8.1
  84. # ports:
  85. # - "5900:5900"
  86. # extra_hosts: *appextrahosts
  87. volumes:
  88. appdata:
  89. dbdata:
  90. rabbitmqdata:
  91. sockdata:
  92. ssldata: