Skip to content

ayoubeddafali/magento-docker

Repository files navigation

Dockerized Magento 1

You can run this project in standalone environment or in a swarm cluster ( K8S is WIP ).

How To Run :

In your local machine

  $ docker-compose up -d

And go to https://localhost

In a Swarm Cluster

First, you need to create the instances ( 1 master & 2 slaves ) and fill in the hosts files with the IPs. Verify that you have Ansible Installed, and ssh established with the instances, and run :

  $ ansible-playbook -i hosts main.yml
  $ ansible-playbook -i hosts swarm/swarm-playbook/stack.yml

Note that the swarm cluster use Digital Ocean Block Storage to save data into volumes, using the rexray/dobs plugins, so we can scale the containers and restore the state of the application when one nodes goes down.

There are 5 volumes in total :

  • mysql_data: For Mysql data
  • redis_datan: For session data
  • cache_data: For magento cache
  • data: For magento source code
  • cluster_data: For general cluster data

About

Dockerized Magento 1 ( Swarm & Kubernetes WIP )

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published