Yii3 - How to start

Comparing #22 with #23

Revision #23 was created by samdark samdark on Oct 9, 2025, 12:01:50 PM.

Highlighting for yaml

Content

[...]
Your project now does not contain any DB. Let's add MariaDB and Adminer (DB browser) into file docker/dev/compose.yml:

In my case the resulting file looks like this:

```
yaml
services:
app:
[...]
So you need to run following commands:

 
```sh
 
composer require yiisoft/db-mysql composer require yiisoft/cache composer require yiisoft/db-migration --dev  
```


To run composer (or any other command inside your dockerized yii3 application) you have 4 options:
- Make:
The best solution is to prepend the composer commands with "make".
[...]