docker-compose.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Mark Shust's Docker Configuration for Magento
  2. # (https://github.com/markshust/docker-magento)
  3. #
  4. # Version 36.0.0
  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-3
  22. links:
  23. - db
  24. volumes: *appvolumes
  25. db:
  26. image: mysql:8.0.23
  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. rabbitmq:
  43. image: rabbitmq:3.7-management-alpine
  44. ports:
  45. - "15672:15672"
  46. - "5672:5672"
  47. volumes:
  48. - rabbitmqdata:/var/lib/rabbitmq
  49. # Disabling cron by default as it uses higher CPU, enable if needed
  50. #cron:
  51. # image: markoshust/magento-php:7.4-fpm-3
  52. # user: root
  53. # command: /usr/local/bin/cronstart
  54. # tty: true
  55. # links:
  56. # - db
  57. # volumes: *appvolumes
  58. volumes:
  59. appdata:
  60. dbdata:
  61. rabbitmqdata:
  62. sockdata:
  63. ssldata: