The bundle includes a demo project for the current Symfony major. It has its own docker-compose.yml and can be run independently:
- Symfony 8.0 Demo:
demo/symfony8/(Port 8003 by default, configurable viaPORT)
Docker stack: The demo uses FrankenPHP with Caddy as the web server. The bundled Caddyfile serves HTTP only (:80 in the container, published to the host as PORT: 8003). TLS/HTTPS is not enabled in the default demo config; you can extend Caddy if you need HTTPS locally.
# Symfony 8.0 Demo
cd demo/symfony8
docker-compose up -d
docker-compose exec php composer install
# Access at: http://localhost:8003 (default port)Or use the Makefile helper commands from the demo/ directory:
cd demo
make up-symfony8
make install-symfony8The demo docker-compose.yml sets explicit DNS servers on the PHP service so Composer can resolve Packagist inside the container (common on Docker Desktop / WSL2 when the embedded resolver fails).
- Recreate the container so Docker applies the
dns:block (editing compose alone does not update a running container):cd demo/symfony8 docker compose down docker compose up -d --force-recreate - Check resolution from inside the container:
If this fails, your network or VPN may block public DNS; replace the
docker compose exec php getent hosts repo.packagist.orgdns:entries with your corporate resolvers, or use adocker-compose.override.yml(local only, not committed). - Confirm the compose in use includes
dns:(for example:docker compose config | grep -A5 dns).
Another stack is using the host port. Set PORT in .env (see the demo’s .env.example) or stop the other container, then docker compose down and docker compose up -d again.
The demo includes:
- Independent
docker-compose.ymlfor easy setup - Complete test suite to verify bundle integration
- Code coverage configuration (100% coverage for demo code)
- Example controller and templates
- Web Profiler integration
The demo has its own test suite with code coverage:
cd demo
make test-symfony8
make test-coverage-symfony8
make test-coverage-allOr directly in the demo directory:
cd demo/symfony8
docker-compose exec php composer test
docker-compose exec php composer test-coverageSee demo/README.md in the repository for more details.