- Symfony 6.0.7
- PHP 8.1
- Apache
- Mariadb latest
- Xdebug 3.14
- Composer latest
- symfony/apache-pack 1.0.1
- Git
Xdebug by default is enabled and running. For more information on configuring the IDE please check matthewsetter.com
The application/Symfony code in under the /src
folder.
The src
folder is mounted into /var/www/html
inside the app
container.
- Clone the project.
- Copy
.env.sample
file to.env
file in the main directory. - Inside the main folder, start the docker-compose:
docker-compose up -d
- Connect to the
app
container:docker-compose exec app bash
- Install composer inside the container
composer install
- Check http://localhost, you should see the Symfony welcome page.
docker-compose up -d
To rebuild the container as well:
docker-compose up -d --build
docker-compose down
To remove the dependent orphaned containers:
docker-compose down --remove-orphans
docker-compose exec app bash
you can disable the xdebug in order to improve the performance. read more on carstenwindler.de
bin/xdebug disable
To re-enable the xdebug:
bin/xdebug disable