With this project, you can quickly containerize a Symfony project with KnpSnappyBundle support for PDF generation.
Contents:
Make sure you have the latest versions of Docker
and Docker Compose
installed on your machine.
-
Copy the files from this repository into the folder with existing Symfony project.
-
Copy variables from
.env.example
to.env
file and adapt them to your needs. -
Place a dump of your MySQL database in the ./docker/db folder. It will be imported automatically.
Build and run containers (in daemon mode):
docker-compose up -d
Open the Symfony project at the address (if you haven't changed the default port):
https://127.0.0.1:701
Stop and remove the containers:
docker-compose down
- PHP 8.1
- MySQL 8
- Xdebug
- Wkhtmltopdf
- Composer
- Node 18
- SSL self-signed certificate
- Adminer and phpMyAdmin database management tools
- Git
- Cron job for messenger
- Redis and phpRedisAdmin