A Docker-based installer and runtime for Symfony. Install: download and docker compose up. https://dunglas.dev/2021/12/symfonys-new-native-docker-support-symfony-world/
  • Shell 60.7%
  • Dockerfile 39.3%
Find a file Use this template
Victor Dittiere 3c0d1772e8
fix: copy openssl.cnf from prod builder image and set openssl conf en… (#927)
* fix: copy openssl.cnf from prod builder image and set openssl conf env variable

* Combine ENV variable declarations in Dockerfile

---------

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
2026-04-27 12:00:15 +02:00
.devcontainer chore: bump Claude Code feature 2026-04-09 11:28:59 +02:00
.github feat: devcontainer support (#918) 2026-03-25 19:19:59 +01:00
docs feat: enable XDebug by default when using DevContainers (#925) 2026-03-31 14:23:19 +02:00
frankenphp refactor(php): remove unnecessary opcache.preload_user overwrite (#937) 2026-04-27 11:57:54 +02:00
.dockerignore chore: backport fixes and improvements from API Platform 2023-10-26 15:00:11 +02:00
.editorconfig feat: devcontainer support (#918) 2026-03-25 19:19:59 +01:00
.gitattributes chore: sync with API Platform 2023-09-15 17:57:02 +02:00
compose.override.yaml fix: scope /app/var volume to dev, fix prod arbitrary-UID writability (#933) 2026-04-23 09:20:32 +02:00
compose.prod.yaml feat: use rootless Debian slim images for prod (#909) 2026-03-12 15:33:22 +01:00
compose.yaml chore: improve post-install cleanup (#911) 2026-03-12 15:50:17 +01:00
composer.json feat: enable Dependabot (#907) 2026-03-11 15:40:52 +01:00
Dockerfile fix: copy openssl.cnf from prod builder image and set openssl conf en… (#927) 2026-04-27 12:00:15 +02:00
README.md feat: improve coding agents support (#923) 2026-03-28 13:30:30 +01:00

Symfony Docker

A Docker-based installer and runtime for the Symfony web framework, with FrankenPHP and Caddy inside!

Specially tailored for coding agents: ships with a Dev Container configuration that lets Claude Code (and other AI coding assistants) run in fully autonomous mode inside a sandboxed environment.

CI

Getting Started

  1. If not already done, install Docker Compose (v2.10+)
  2. Run docker compose build --pull --no-cache to build fresh images
  3. Run docker compose up --wait to set up and start a fresh Symfony project
  4. Open https://localhost in your favorite web browser and accept the auto-generated TLS certificate
  5. Run docker compose down --remove-orphans to stop the Docker containers.

Features

Enjoy!

Docs

  1. Options available
  2. Using Symfony Docker with an existing project
  3. Support for extra services
  4. Deploying in production
  5. Debugging with Xdebug
  6. TLS Certificates
  7. Using MySQL instead of PostgreSQL
  8. Using Alpine Linux instead of Debian
  9. Using a Makefile
  10. Updating the template
  11. Troubleshooting
  12. Using AI Coding Agents

License

Symfony Docker is available under the MIT License.

Credits

Created by Kévin Dunglas, co-maintained by Maxime Helias and sponsored by Les-Tilleuls.coop.