- PHP 8.2
- Doctrine
- Laminas Framework
- PHPStan
- PHPUnit
Starting the container
docker-compose up -d
Creating a local .env
file
cp .env.skel .env
Creating a local .doctrine.local.php.skel
file
cp ./config/autoload/doctrine.local.php.skel ./config/autoload/doctrine.local.php
Running composer install.
docker-compose exec container-name composer install
Run migrations
docker-compose exec container-name php public/index.php migrations:migrate
(Optional) Jump inside the container.
docker-compose exec -it container-name bash
Debugging
- Server:
localhost:8080
- IDE Key (session id):
DEBUG