- localhost:9080/ => ./htdocs as webroot folder
- localhost:9081/ => adminer
- localhost:9306 => external db connection (only needed for external access
NOTE: from inside the network the database connection is db:3306!!
Adapt .env
to set the project and network name.
change MARIADB_ROOT_PASSWORD
first time creation. After that it is fixed. So after generation of the containers you can (should) return it to its original or some other value
When you're ready, start your application by running:
docker compose up --build
.
The xdebug.ini
file sits in the root. After changing make sure to restart the webserver!
- Install xdebug extension
- create launch.json (open the xdebug tab and click "create a launch.json file" )
- add thist to the configurations section in the launnch.json file (for instance just below the port: 9003 section)
"pathMappings": {
"/var/www/html": "${workspaceFolder}/htdocs"
}
and save the file. This assumes you have your webroot in a folder htdocs as indicated above.
To create a database and a user open in Adminer oder a vscode MariaDB plugin
create database my_database;
create user 'my-user'@'%' identified by 'my-oassword';
grant all privileges on my_database.* to 'my-user'@'%';