Yii3 - How to start

Comparing #8 with #9

Revision #9 was created by rackycz rackycz on Oct 8, 2025, 1:25:07 PM.

edit

Content

[...]
Login, server and pwd is defined in the snippet above.

If you type "docker ps" into your host console, you should see 3 running containers: yii3api_php, yii3api_adminer, yii3api_db.

The web will be, from now on, available on URL http://localhost:9080 which is more handy than just ":80" I think.
 (Later you may run 4 different projects at the same time and all cannot run on port 80)

## Enabling MariaDB (MySQL) and migrations
[...]
Other solutions:

 
> - Locally:
> If you have Composer running locally, you can call these commands directly on your computer. (I do not recommend)
> - Docker:
> You can SSH into your docker container and call it there as Composer is installed inside.
> Find the name of the PHP container by typing "docker ps" and call:
> docker exec -it {containerName} /bin/bash
[...]