Yii2 based demo blog. Dockerized and can be simply run using Installation instructions below. Database included.
The minimum requirement by this project template that your Web server supports PHP 5.6.0.
Update your vendor packages
docker-compose run --rm php composer update --prefer-dist
Run the installation triggers (creating cookie validation code)
docker-compose run --rm php composer install
Start the container
docker-compose up -d
Run migrations
docker exec -it yii2-php-1 php yii migrate
You can then access the application through the following URL:
http://127.0.0.1
Create user using signup link
Edit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=db;dbname=yii2',
'username' => 'my_user_name',
'password' => 'my_user_password',
'charset' => 'utf8',
];