docker-compose.yml 1.3 KB

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