2
0

docker-compose.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 41.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. ## 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. links:
  18. - db
  19. - phpfpm
  20. volumes: &appvolumes
  21. - ~/.composer:/var/www/.composer:cached
  22. - ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
  23. - ~/.ssh/known_hosts:/var/www/.ssh/known_hosts:cached
  24. - appdata:/var/www/html
  25. - sockdata:/sock
  26. - ssldata:/etc/nginx/certs
  27. extra_hosts: &appextrahosts
  28. ## M1 Mac support to fix Docker delay, see #566
  29. - "app:172.17.0.1"
  30. - "phpfpm:172.17.0.1"
  31. - "db:172.17.0.1"
  32. - "redis:172.17.0.1"
  33. - "elasticsearch:172.17.0.1"
  34. ## Selenium support, replace "magento.test" with URL of your site
  35. - "magento.test:172.17.0.1"
  36. phpfpm:
  37. image: markoshust/magento-php:7.4-fpm-11
  38. links:
  39. - db
  40. volumes: *appvolumes
  41. extra_hosts: *appextrahosts
  42. db:
  43. image: mariadb:10.4
  44. command: --max_allowed_packet=64M
  45. ports:
  46. - "3306:3306"
  47. env_file: env/db.env
  48. volumes:
  49. - dbdata:/var/lib/mysql
  50. extra_hosts: *appextrahosts
  51. redis:
  52. image: redis:5.0-alpine
  53. ports:
  54. - "6379:6379"
  55. extra_hosts: *appextrahosts
  56. elasticsearch:
  57. image: markoshust/magento-elasticsearch:7.9.3-1
  58. ports:
  59. - "9200:9200"
  60. - "9300:9300"
  61. environment:
  62. - "discovery.type=single-node"
  63. ## Set custom heap size to avoid memory errors
  64. - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
  65. ## Avoid test failures due to small disks
  66. ## More info at https://github.com/markshust/docker-magento/issues/488
  67. - "cluster.routing.allocation.disk.threshold_enabled=false"
  68. - "index.blocks.read_only_allow_delete"
  69. extra_hosts: *appextrahosts
  70. rabbitmq:
  71. image: rabbitmq:3.8.22-management-alpine
  72. ports:
  73. - "15672:15672"
  74. - "5672:5672"
  75. volumes:
  76. - rabbitmqdata:/var/lib/rabbitmq
  77. environment:
  78. - RABBITMQ_VM_MEMORY_HIGH_WATERMARK=1GB
  79. extra_hosts: *appextrahosts
  80. mailcatcher:
  81. image: sj26/mailcatcher
  82. ports:
  83. - "1080:1080"
  84. extra_hosts: *appextrahosts
  85. ## Selenium support, uncomment to enable
  86. #selenium:
  87. # image: selenium/standalone-chrome-debug:3.8.1
  88. # ports:
  89. # - "5900:5900"
  90. # links:
  91. # - app
  92. # extra_hosts: *appextrahosts
  93. volumes:
  94. appdata:
  95. dbdata:
  96. rabbitmqdata:
  97. sockdata:
  98. ssldata: