Revision #49 was created by rackycz on Mar 8, 2021, 9:06:39 PM.
Docker
Content
[...]
- Current IP: hostname -I
In "scotch/box" I do not use PhpMyAdmin , but [Adminer](https://www.adminer.org/en). It is one simple PHP script and it will run without any installations.
Just copy the adminer.php script to your docroot and access it via browser. Use the same login as in configurafion of Yii. Server will be localhost.
**Running Yii project in Docker (now without xDebugUpdate: xDebug added below!)**
---
[...]
*I was not able to use xDebug. It just does not work now. I will update as soon as I find out.*
**Enabling xDebug in Docker, yii demo application**
---
Just add section **environmenr** to docker-compose.yml like this:
Note: You can/must specify the **idekey** and **client_port** based on your IDE settings. Plus your Yii project must be well configured in the IDE as well. In NetBeans make sure that "Project URL" and "index file" are correct in "Properties/Run Configuration" (right click the project)
Note 2: Please keep in mind that xDebug2 and xDebug3 have different settings. Details [here](https://xdebug.org/docs/).
**How to enter Docker's bash (cli, command line)**
---
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