A complete stack for developing Symfony application.
- Multiple PHP versions
- Symfony CLI
- Supervisor to run async tasks
- MariaDB + PhpMyadmin
- Node + NPM for building assets
- Composer v2
- Maildev
Edit the .env
file
Build & run the stack :
$ docker-compose up -d
Connect to Shell inside webserver container :
$ docker exec -ti php-fpm /bin/bash
Install Symfony app :
$ symfony new ./ --webapp
Go to http://localhost:8080
Access to your app http://localhost:8080
Access to PHPMyAdmin http://localhost:8282
Access to Maildev http://localhost:8383
You can configure PHP, Xdebug, Vhost and supervisor in /config
To work with Maildev, you need to edit the Symfony .env
:
MAILER_DSN=smtp://mail:25
You can check Caddy & Mysql logs in /logs
Check container logs :
$ docker logs -f php-fpm
If you want to debug if supervisor handle some tasks, just type the following in the container shell to see the process logs :
$ supervisord
Rebuild the stack :
$ docker-compose up --build -d
Stop the stack :
$ docker-compose down
List all containers :
$ docker ps