A demo Symfony 6.4 application based on The Symfony Fast Track Book. It features a full-stack Symfony setup with Docker, PostgreSQL, Messenger, Mailer, and more.
- Symfony 6.4 (LTS)
- Docker-based local dev environment
- PostgreSQL via Docker
- Mailer with Mailpit for testing email delivery
- Symfony Flex, MakerBundle, Twig, API Platform (optional)
- Configuration via
.env
- Environment-ready for production
git clone https://github.com/your-username/symfony-fast-track-demo.git
cd symfony-fast-track-demo
Make sure Docker is running on your machine, then:
docker compose up -d
This will start:
- Symfony app
- PostgreSQL
- Mailpit (for email viewing)
📌 If you get an error like:
Cannot connect to the Docker daemon...
make sure Docker Desktop is running.
Environment variables
Copy the example environment file:
cp .env .env.local
Edit database DSN if needed:
DATABASE_URL="pgsql://symfony:symfony@db:5432/app?serverVersion=15&charset=utf8"
Run database migrations:
docker compose exec php bin/console doctrine:database:create
docker compose exec php bin/console doctrine:migrations:migrate
(Optional) Load fixtures:
docker compose exec php bin/console doctrine:fixtures:load
Emails sent by Symfony are captured by Mailpit.
Send a test email:
docker compose exec php bin/console app:send-test-email
docker compose exec php bash # Enter app container
docker compose exec php bin/console list # View Symfony commands
docker compose exec php bin/phpunit # Run tests (if configured)
This project follows the official guide:
📖 Symfony Fast Track Book (6.4)
Symfony Core Team
Contributors to the book and documentation
Mailpit for local email testing
MIT — feel free to use, modify, and distribute.