Revision #23 has been created by
samdark on Oct 9, 2025, 12:01:50 PM with the memo:
Highlighting for yaml
« previous (#22) next (#24) »
Changes
Title
unchanged
Yii3 - How to start
Category
unchanged
Tutorials
Yii version
unchanged
3.0
Tags
unchanged
Content
changed
[...]
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".[...]