docker-compose.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Mark Shust's Docker Configuration for Magento
  2. # (https://github.com/markshust/docker-magento)
  3. #
  4. # Version 37.0.1
  5. version: "3"
  6. services:
  7. app:
  8. image: markoshust/magento-nginx:1.18-4
  9. ports:
  10. - "80:8000"
  11. - "443:8443"
  12. links:
  13. - db
  14. - phpfpm
  15. volumes: &appvolumes
  16. - ~/.composer:/var/www/.composer:cached
  17. - appdata:/var/www/html
  18. - sockdata:/sock
  19. - ssldata:/etc/nginx/certs
  20. phpfpm:
  21. image: markoshust/magento-php:7.4-fpm-5
  22. links:
  23. - db
  24. volumes: *appvolumes
  25. db:
  26. image: percona:5.7
  27. command: --max_allowed_packet=64M
  28. ports:
  29. - "3306:3306"
  30. env_file: env/db.env
  31. volumes:
  32. - dbdata:/var/lib/mysql
  33. redis:
  34. image: redis:5.0-alpine
  35. elasticsearch:
  36. image: markoshust/magento-elasticsearch:7.7.1-0
  37. ports:
  38. - "9200:9200"
  39. - "9300:9300"
  40. environment:
  41. - "discovery.type=single-node"
  42. - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
  43. rabbitmq:
  44. image: rabbitmq:3.7-management-alpine
  45. ports:
  46. - "15672:15672"
  47. - "5672:5672"
  48. volumes:
  49. - rabbitmqdata:/var/lib/rabbitmq
  50. # Disabling cron by default as it uses higher CPU, enable if needed
  51. #cron:
  52. # image: markoshust/magento-php:7.4-fpm-5
  53. # user: root
  54. # command: /usr/local/bin/cronstart
  55. # tty: true
  56. # links:
  57. # - db
  58. # volumes: *appvolumes
  59. volumes:
  60. appdata:
  61. dbdata:
  62. rabbitmqdata:
  63. sockdata:
  64. ssldata: