Skip to content

Production ready Magento 2 deployment with Docker (Nginx Proxy + Letsencrypt + Varnish + PHP7.2 + Redis + Backup).

Notifications You must be signed in to change notification settings

aadyantha/docker-magento2-production

Repository files navigation

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.

About

Production ready Magento 2 deployment with Docker (Nginx Proxy + Letsencrypt + Varnish + PHP7.2 + Redis + Backup).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages