compose.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 46.1.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. services:
  11. app:
  12. image: markoshust/magento-nginx:1.24-0
  13. ports:
  14. - "80:8000"
  15. - "443:8443"
  16. volumes: &appvolumes
  17. - ~/.composer:/var/www/.composer:cached
  18. - ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
  19. - ~/.ssh/known_hosts:/var/www/.ssh/known_hosts:cached
  20. - appdata:/var/www/html
  21. - sockdata:/sock
  22. - ssldata:/etc/nginx/certs
  23. #extra_hosts: &appextrahosts
  24. ## Selenium support, replace "magento.test" with URL of your site
  25. #- "magento.test:172.17.0.1"
  26. ## Linux, uncomment for Xdebug capabilities:
  27. #- "host.docker.internal:host-gateway"
  28. phpfpm:
  29. image: markoshust/magento-php:8.3-fpm-2
  30. volumes: *appvolumes
  31. env_file: env/phpfpm.env
  32. #extra_hosts: *appextrahosts
  33. db:
  34. image: mariadb:10.6
  35. command:
  36. --max_allowed_packet=64M
  37. --optimizer_use_condition_selectivity=1
  38. --optimizer_switch="rowid_filter=off"
  39. ports:
  40. - "3306:3306"
  41. env_file: env/db.env
  42. volumes:
  43. - dbdata:/var/lib/mysql
  44. ## If you wish to use MySQL, comment out the mariadb db image above and
  45. ## uncomment this block.
  46. #db:
  47. # image: mysql:8.0
  48. # command:
  49. # --max_allowed_packet=64M
  50. # --optimizer_use_condition_selectivity=1
  51. # --optimizer_switch="rowid_filter=off"
  52. # ports:
  53. # - "3306:3306"
  54. # env_file: env/db.env
  55. # volumes:
  56. # - dbdata:/var/lib/mysql
  57. redis:
  58. image: redis:7.2-alpine
  59. ports:
  60. - "6379:6379"
  61. opensearch:
  62. image: markoshust/magento-opensearch:2.12-0
  63. ports:
  64. - "9200:9200"
  65. - "9300:9300"
  66. env_file: env/opensearch.env
  67. environment:
  68. - "discovery.type=single-node"
  69. ## Avoid test failures due to small disks
  70. ## More info at https://github.com/markshust/docker-magento/issues/488
  71. - "cluster.routing.allocation.disk.threshold_enabled=false"
  72. - "index.blocks.read_only_allow_delete"
  73. ## Uncomment the following line to increase the virtual memory map count
  74. # - "max_map_count=262144"
  75. ## If you wish to use Elasticsearch, comment out opensearch image above and
  76. ## uncomment this block. Do the same in the composer.healthcheck.yaml file.
  77. # Additionally, if you are performing the manual setup, you will need to
  78. # update the bin/setup command to use the $ES_HOST variable as the value for
  79. # the --elasticsearch-host argument passed to bin/magento setup:install.
  80. #elasticsearch:
  81. # image: markoshust/magento-elasticsearch:8.13-0
  82. # ports:
  83. # - "9200:9200"
  84. # - "9300:9300"
  85. # env_file: env/elasticsearch.env
  86. # environment:
  87. # - "discovery.type=single-node"
  88. # ## Avoid test failures due to small disks
  89. # ## More info at https://github.com/markshust/docker-magento/issues/488
  90. # - "cluster.routing.allocation.disk.threshold_enabled=false"
  91. # - "index.blocks.read_only_allow_delete"
  92. # ## Uncomment the following line to increase the virtual memory map count
  93. # - "max_map_count=262144"
  94. rabbitmq:
  95. image: markoshust/magento-rabbitmq:3.12-0
  96. ports:
  97. - "15672:15672"
  98. - "5672:5672"
  99. volumes:
  100. - rabbitmqdata:/var/lib/rabbitmq
  101. env_file: env/rabbitmq.env
  102. mailcatcher:
  103. image: sj26/mailcatcher
  104. ports:
  105. - "1080:1080"
  106. ## Cloudflare tunnel support, uncomment to enable
  107. #tunnel:
  108. # container_name: cloudflared-tunnel
  109. # image: cloudflare/cloudflared:latest
  110. # command: tunnel run
  111. # env_file: env/cloudflare.env
  112. ## Blackfire support, uncomment to enable
  113. #blackfire:
  114. # image: blackfire/blackfire:2
  115. # ports:
  116. # - "8307"
  117. # env_file: env/blackfire.env
  118. ## Selenium support, uncomment to enable
  119. #selenium:
  120. # image: selenium/standalone-chrome-debug:3.8.1
  121. # ports:
  122. # - "5900:5900"
  123. # extra_hosts: *appextrahosts
  124. volumes:
  125. appdata:
  126. dbdata:
  127. rabbitmqdata:
  128. sockdata:
  129. ssldata: