Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.25 KB

README.md

File metadata and controls

24 lines (21 loc) · 1.25 KB

docker-magento2-production-alpine

Production ready Magento 2 deployment with Docker (Traefik + Apache2 + Varnish + PHP7.2 + Redis + Backup). This repository also inlcudes Portainer for Docker UI and container management.

Our goal is to build a Magento2 Docker infrastructure with One Container - One Process architecture. This makes easy for scalability and good for stability. All are Alpine based images.

Infrastructure Outline


  • Container 1: Traefik (For reverse proxy and Letsencryt SSL)
  • Container 2: Apache 2.4 + PHP 7.2 (modphp)
  • Container 3: Mysql Database
  • Container 4: RabbitMQ
  • Container 5: Cron
  • Container 6: Varnish 4.1
  • Container 7: Redis (for autodiscovery cluster nodes)
  • Container 8: Redis (for Magento's cache)
  • Container 9: Elasticsearch
  • Container 10: MailHog (SMTP Server)
  • Container 11: Portainer (Optional Docker UI for managing Docker from browser).

This architecture makes it easy for cluster management and container orchestration services such as Docker Swarmmode or Kubernetes. You are welcome to use the prebuilt images or build the images locally. Two Separate docker-compose.yml files are availble for this.