Giter Site home page Giter Site logo

magento2-docker's Introduction

magento2-docker

Magento2 + Varnish + PHP7 + Redis + SSL (cluster ready)

Step: 1 - prepair your machine

- Install docker ( Link: https://www.docker.com/get-started )

=> Goto Docker -> Preferences -> File Sharing

  1. Add your work path
  2. Composer path

- Change command name 3 files

=> redis-cli.sh, varnishadm.sh, varnishncsa.sh
=> Replace <folder_name> with work folder name in lowercase
=> Ex. work path is /Users/mac/Works/Magento2 - folder name is magento2

Step: 2 - follow link below

Prototype => https://github.com/fballiano/docker-magento2#magento2-varnish--php7--redis--ssl-cluster-ready-docker-compose-infrastructure

Starting <folder_name>_db_1 ... done
Starting <folder_name>_cache_1 ... done
Starting <folder_name>_clusterdata_1 ... done
Starting <folder_name>_apache_1 ... done
Creating <folder_name>_varnish_1 ... done
Creating <folder_name>_ssl_1 ... done
Creating <folder_name>_cron_1 ... done

- Install magento with sudo => sudo docker-compose up -d

- Database Server Host => db

- Deploy static files

docker exec -it <folder_name>_apache_1 bash
php bin/magento dev:source-theme:deploy
php bin/magento setup:static-content:deploy -f
php bin/magento setup:static-content:deploy --theme Kos/design -f

- Command

Reindex => php bin/magento indexer:reindex
Clear cache => php bin/magento cache:flush
Install extension or widget => php bin/magento setup:upgrade

magento2-docker's People

Contributors

kosdesign avatar

Stargazers

peace_data avatar Bryan "BJ" Hoffpauir avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.