compose.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 45.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.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-2
  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. ## Uncomment the following line to increase the virtual memory map count
  62. # - "max_map_count=262144"
  63. ## If you wish to use Elasticsearch, comment out opensearch image above and
  64. ## uncomment this block. Do the same in the composer.healthcheck.yaml file.
  65. # Additionally, if you are performing the manual setup, you will need to
  66. # update the bin/setup command to use the $ES_HOST variable as the value for
  67. # the --elasticsearch-host argument passed to bin/magento setup:install.
  68. #elasticsearch:
  69. # image: markoshust/magento-elasticsearch:7.17-1
  70. # ports:
  71. # - "9200:9200"
  72. # - "9300:9300"
  73. # env_file: env/elasticsearch.env
  74. # environment:
  75. # - "discovery.type=single-node"
  76. # ## Avoid test failures due to small disks
  77. # ## More info at https://github.com/markshust/docker-magento/issues/488
  78. # - "cluster.routing.allocation.disk.threshold_enabled=false"
  79. # - "index.blocks.read_only_allow_delete"
  80. # ## Uncomment the following line to increase the virtual memory map count
  81. # - "max_map_count=262144"
  82. rabbitmq:
  83. image: markoshust/magento-rabbitmq:3.11-1
  84. ports:
  85. - "15672:15672"
  86. - "5672:5672"
  87. volumes:
  88. - rabbitmqdata:/var/lib/rabbitmq
  89. env_file: env/rabbitmq.env
  90. mailcatcher:
  91. image: sj26/mailcatcher
  92. ports:
  93. - "1080:1080"
  94. ## Cloudflare tunnel support, uncomment to enable
  95. #tunnel:
  96. # container_name: cloudflared-tunnel
  97. # image: cloudflare/cloudflared:latest
  98. # command: tunnel run
  99. # env_file: env/cloudflare.env
  100. ## Blackfire support, uncomment to enable
  101. #blackfire:
  102. # image: blackfire/blackfire:2
  103. # ports:
  104. # - "8307"
  105. # env_file: env/blackfire.env
  106. ## Selenium support, uncomment to enable
  107. #selenium:
  108. # image: selenium/standalone-chrome-debug:3.8.1
  109. # ports:
  110. # - "5900:5900"
  111. # extra_hosts: *appextrahosts
  112. volumes:
  113. appdata:
  114. dbdata:
  115. rabbitmqdata:
  116. sockdata:
  117. ssldata: