compose.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 46.1.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.24-0
  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.3-fpm-1
  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. ## If you wish to use MySQL, comment out opensearch image above and
  46. ## uncomment this block.
  47. #db:
  48. # image: mysql:8.0
  49. # command:
  50. # --max_allowed_packet=64M
  51. # --optimizer_use_condition_selectivity=1
  52. # --optimizer_switch="rowid_filter=off"
  53. # ports:
  54. # - "3306:3306"
  55. # env_file: env/db.env
  56. # volumes:
  57. # - dbdata:/var/lib/mysql
  58. redis:
  59. image: redis:7.2-alpine
  60. ports:
  61. - "6379:6379"
  62. opensearch:
  63. image: markoshust/magento-opensearch:2.12-0
  64. ports:
  65. - "9200:9200"
  66. - "9300:9300"
  67. env_file: env/opensearch.env
  68. environment:
  69. - "discovery.type=single-node"
  70. ## Avoid test failures due to small disks
  71. ## More info at https://github.com/markshust/docker-magento/issues/488
  72. - "cluster.routing.allocation.disk.threshold_enabled=false"
  73. - "index.blocks.read_only_allow_delete"
  74. ## Uncomment the following line to increase the virtual memory map count
  75. # - "max_map_count=262144"
  76. ## If you wish to use Elasticsearch, comment out opensearch image above and
  77. ## uncomment this block. Do the same in the composer.healthcheck.yaml file.
  78. # Additionally, if you are performing the manual setup, you will need to
  79. # update the bin/setup command to use the $ES_HOST variable as the value for
  80. # the --elasticsearch-host argument passed to bin/magento setup:install.
  81. #elasticsearch:
  82. # image: markoshust/magento-elasticsearch:8.13-0
  83. # ports:
  84. # - "9200:9200"
  85. # - "9300:9300"
  86. # env_file: env/elasticsearch.env
  87. # environment:
  88. # - "discovery.type=single-node"
  89. # ## Avoid test failures due to small disks
  90. # ## More info at https://github.com/markshust/docker-magento/issues/488
  91. # - "cluster.routing.allocation.disk.threshold_enabled=false"
  92. # - "index.blocks.read_only_allow_delete"
  93. # ## Uncomment the following line to increase the virtual memory map count
  94. # - "max_map_count=262144"
  95. rabbitmq:
  96. image: markoshust/magento-rabbitmq:3.12-0
  97. ports:
  98. - "15672:15672"
  99. - "5672:5672"
  100. volumes:
  101. - rabbitmqdata:/var/lib/rabbitmq
  102. env_file: env/rabbitmq.env
  103. mailcatcher:
  104. image: sj26/mailcatcher
  105. ports:
  106. - "1080:1080"
  107. ## Cloudflare tunnel support, uncomment to enable
  108. #tunnel:
  109. # container_name: cloudflared-tunnel
  110. # image: cloudflare/cloudflared:latest
  111. # command: tunnel run
  112. # env_file: env/cloudflare.env
  113. ## Blackfire support, uncomment to enable
  114. #blackfire:
  115. # image: blackfire/blackfire:2
  116. # ports:
  117. # - "8307"
  118. # env_file: env/blackfire.env
  119. ## Selenium support, uncomment to enable
  120. #selenium:
  121. # image: selenium/standalone-chrome-debug:3.8.1
  122. # ports:
  123. # - "5900:5900"
  124. # extra_hosts: *appextrahosts
  125. volumes:
  126. appdata:
  127. dbdata:
  128. rabbitmqdata:
  129. sockdata:
  130. ssldata: