compose.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 44.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-8
  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. ## Selenium support, replace "magento.test" with URL of your site
  26. #- "magento.test:172.17.0.1"
  27. ## Linux, uncomment for Xdebug capabilities:
  28. #- "host.docker.internal:host-gateway"
  29. phpfpm:
  30. image: markoshust/magento-php:8.2-fpm-0
  31. volumes: *appvolumes
  32. env_file: env/phpfpm.env
  33. #extra_hosts: *appextrahosts
  34. db:
  35. image: mariadb:10.6
  36. command:
  37. --max_allowed_packet=64M
  38. --optimizer_use_condition_selectivity=1
  39. --optimizer_switch="rowid_filter=off"
  40. ports:
  41. - "3306:3306"
  42. env_file: env/db.env
  43. volumes:
  44. - dbdata:/var/lib/mysql
  45. redis:
  46. image: redis:7.0-alpine
  47. ports:
  48. - "6379:6379"
  49. opensearch:
  50. image: markoshust/magento-opensearch:2.5-1
  51. ports:
  52. - "9200:9200"
  53. - "9300:9300"
  54. env_file: env/opensearch.env
  55. environment:
  56. - "discovery.type=single-node"
  57. ## Avoid test failures due to small disks
  58. ## More info at https://github.com/markshust/docker-magento/issues/488
  59. - "cluster.routing.allocation.disk.threshold_enabled=false"
  60. - "index.blocks.read_only_allow_delete"
  61. ## If you wish to use Elasticsearch, comment out opensearch image above and
  62. ## uncomment this block. Do the same in the composer.healthcheck.yaml file.
  63. # Additionally, if you are performing the manual setup, you will need to
  64. # update the bin/setup command to use the $ES_HOST variable as the value for
  65. # the --elasticsearch-host argument passed to bin/magento setup:install.
  66. #elasticsearch:
  67. # image: markoshust/magento-elasticsearch:7.17-1
  68. # ports:
  69. # - "9200:9200"
  70. # - "9300:9300"
  71. # env_file: env/elasticsearch.env
  72. # environment:
  73. # - "discovery.type=single-node"
  74. # ## Avoid test failures due to small disks
  75. # ## More info at https://github.com/markshust/docker-magento/issues/488
  76. # - "cluster.routing.allocation.disk.threshold_enabled=false"
  77. # - "index.blocks.read_only_allow_delete"
  78. rabbitmq:
  79. image: markoshust/magento-rabbitmq:3.11-1
  80. ports:
  81. - "15672:15672"
  82. - "5672:5672"
  83. volumes:
  84. - rabbitmqdata:/var/lib/rabbitmq
  85. env_file: env/rabbitmq.env
  86. mailcatcher:
  87. image: sj26/mailcatcher
  88. ports:
  89. - "1080:1080"
  90. ## Cloudflare tunnel support, uncomment to enable
  91. #tunnel:
  92. # container_name: cloudflared-tunnel
  93. # image: cloudflare/cloudflared:latest
  94. # command: tunnel run
  95. # env_file: env/cloudflare.env
  96. ## Blackfire support, uncomment to enable
  97. #blackfire:
  98. # image: blackfire/blackfire:2
  99. # ports:
  100. # - "8307"
  101. # env_file: env/blackfire.env
  102. ## Selenium support, uncomment to enable
  103. #selenium:
  104. # image: selenium/standalone-chrome-debug:3.8.1
  105. # ports:
  106. # - "5900:5900"
  107. # extra_hosts: *appextrahosts
  108. volumes:
  109. appdata:
  110. dbdata:
  111. rabbitmqdata:
  112. sockdata:
  113. ssldata: