Skeleton for work with Yii2 in docker environment
- Clone repository.
- Build base image:
make build
- If you don't have project and want to create new one, do:
make first-install
to install Yii2 basic version
OR
make first-install YII_INSTALL_VERSION=advanced
to install Yii2 advanced version.
- Start your stack to work:
make start
make start
- runs your stackmake stop
- stops itmake ssh
- enter into your web application ssh consolemake help
or just "make" to see other stuff
- application - your application directory. It mounts locally for development and will be copied into docker image for production.
- docker - all infrastructure and docker data:
- build - build configuration
- config - configuration files for different environments: dev, staging, production
- runtime - here you can find all your runtime data - logs, database files etc.