Magento2 + Varnish + PHP7 + Redis + SSL (cluster ready)
- Install docker ( Link: https://www.docker.com/get-started )
=> Goto Docker -> Preferences -> File Sharing
- Add your work path
- Composer path
=> 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
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
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
Reindex => php bin/magento indexer:reindex
Clear cache => php bin/magento cache:flush
Install extension or widget => php bin/magento setup:upgrade