docker-compose.yml 1.3 KB

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