2
0

compose.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. phpfpm:
  28. image: markoshust/magento-php:8.1-fpm-1
  29. volumes: *appvolumes
  30. env_file: env/phpfpm.env
  31. #extra_hosts: *appextrahosts
  32. db:
  33. image: mariadb:10.4
  34. command:
  35. --max_allowed_packet=64M
  36. --optimizer_use_condition_selectivity=1
  37. --optimizer_switch="rowid_filter=off"
  38. ports:
  39. - "3306:3306"
  40. env_file: env/db.env
  41. volumes:
  42. - dbdata:/var/lib/mysql
  43. redis:
  44. image: redis:6.2-alpine
  45. ports:
  46. - "6379:6379"
  47. opensearch:
  48. image: markoshust/magento-opensearch:1.2-0
  49. ports:
  50. - "9200:9200"
  51. - "9300:9300"
  52. env_file: env/opensearch.env
  53. environment:
  54. - "discovery.type=single-node"
  55. ## Avoid test failures due to small disks
  56. ## More info at https://github.com/markshust/docker-magento/issues/488
  57. - "cluster.routing.allocation.disk.threshold_enabled=false"
  58. - "index.blocks.read_only_allow_delete"
  59. ## If you wish to use Elasticsearch, comment out opensearch image above and
  60. ## uncomment this block. Do the same in the composer.healthcheck.yaml file.
  61. #elasticsearch:
  62. # image: markoshust/magento-elasticsearch:7.17-0
  63. # ports:
  64. # - "9200:9200"
  65. # - "9300:9300"
  66. # env_file: env/elasticsearch.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. rabbitmq:
  74. image: markoshust/magento-rabbitmq:3.9-0
  75. ports:
  76. - "15672:15672"
  77. - "5672:5672"
  78. volumes:
  79. - rabbitmqdata:/var/lib/rabbitmq
  80. env_file: env/rabbitmq.env
  81. mailcatcher:
  82. image: sj26/mailcatcher
  83. ports:
  84. - "1080:1080"
  85. ## Blackfire support, uncomment to enable
  86. #blackfire:
  87. # image: blackfire/blackfire:2
  88. # ports:
  89. # - "8307"
  90. # env_file: env/blackfire.env
  91. ## Selenium support, uncomment to enable
  92. #selenium:
  93. # image: selenium/standalone-chrome-debug:3.8.1
  94. # ports:
  95. # - "5900:5900"
  96. # extra_hosts: *appextrahosts
  97. volumes:
  98. appdata:
  99. dbdata:
  100. rabbitmqdata:
  101. sockdata:
  102. ssldata: