docker-compose.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ## Mark Shust's Docker Configuration for Magento
  2. ## (https://github.com/markshust/docker-magento)
  3. ##
  4. ## Version 41.0.2
  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-5
  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. ## M1 Mac support to fix Docker delay, see #566
  26. - "app:172.17.0.1"
  27. - "phpfpm:172.17.0.1"
  28. - "db:172.17.0.1"
  29. - "redis:172.17.0.1"
  30. - "elasticsearch:172.17.0.1"
  31. - "rabbitmq:172.17.0.1"
  32. ## Selenium support, replace "magento.test" with URL of your site
  33. - "magento.test:172.17.0.1"
  34. phpfpm:
  35. image: markoshust/magento-php:7.4-fpm-12
  36. volumes: *appvolumes
  37. extra_hosts: *appextrahosts
  38. env_file: env/phpfpm.env
  39. db:
  40. image: mariadb:10.4
  41. command: --max_allowed_packet=64M
  42. ports:
  43. - "3306:3306"
  44. env_file: env/db.env
  45. volumes:
  46. - dbdata:/var/lib/mysql
  47. extra_hosts: *appextrahosts
  48. redis:
  49. image: redis:6.0-alpine
  50. ports:
  51. - "6379:6379"
  52. extra_hosts: *appextrahosts
  53. elasticsearch:
  54. image: markoshust/magento-elasticsearch:7.9.3-1
  55. ports:
  56. - "9200:9200"
  57. - "9300:9300"
  58. env_file: env/elasticsearch.env
  59. extra_hosts: *appextrahosts
  60. rabbitmq:
  61. image: rabbitmq:3.8.22-management-alpine
  62. ports:
  63. - "15672:15672"
  64. - "5672:5672"
  65. volumes:
  66. - rabbitmqdata:/var/lib/rabbitmq
  67. env_file: env/rabbitmq.env
  68. extra_hosts: *appextrahosts
  69. mailcatcher:
  70. image: sj26/mailcatcher
  71. ports:
  72. - "1080:1080"
  73. extra_hosts: *appextrahosts
  74. ## Selenium support, uncomment to enable
  75. #selenium:
  76. # image: selenium/standalone-chrome-debug:3.8.1
  77. # ports:
  78. # - "5900:5900"
  79. # extra_hosts: *appextrahosts
  80. volumes:
  81. appdata:
  82. dbdata:
  83. rabbitmqdata:
  84. sockdata:
  85. ssldata: