There are some containers here to run Yii 1 (PHP and MYSL) on docker . If you don't already have Docker , you can see how to install it here docker installation
- Clone this repository
- RUN docker-compose up (run by root project folder)
Only to your knowledge, the docker php port is 8082 and docker MSQL port is 8083. You can change these ports on docker-composer.yml
Open localhost:8082 to see yii framework working Open localhost:8082/requirements/index.php
If you want to run yii commands you should run these commands by protected folder. Pay atention, all your yiic command should be runned on php docker instance. How could I Do?
- On terminal type: docker exec -it yii_tests_v1 /bin/sh
- cd protected
- Now you can run your yiic commands