Yii v2 snippet guide III

Comparing #55 with #56

Revision #56 was created by rackycz rackycz on Mar 8, 2021, 11:12:24 PM.

Docker

Content

[...]
Navigate in command line to the folder of your docker-project and run command:
- docker ps
- This will list all services you defined in docker-compose.yml

The last column of the list is NAMES. Pick one and copy its name. The
n run command:

- docker exec -it {NAME} /bin/bash
- ... where {NAME} is your service name. For example:
- docker exec -it yii-advanced_backend_1 /bin/bash
[...]