A Docker-based installer and runtime for the Symfony web framework, with FrankenPHP and Caddy inside!
- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --no-cache
to build fresh images - Run
docker compose up --pull always -d --wait
to set up and start a fresh Symfony project - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Run
docker compose down --remove-orphans
to stop the Docker containers.
- Production, development and CI ready
- Just 1 service by default
- Blazing-fast performance thanks to the worker mode of FrankenPHP (automatically enabled in prod mode)
- Installation of extra Docker Compose services with Symfony Flex
- Automatic HTTPS (in dev and prod)
- HTTP/3 and Early Hints support
- Real-time messaging thanks to a built-in Mercure hub
- Vulcain support
- Native XDebug integration
- Super-readable configuration
Enjoy!
- Options available
- Using Symfony Docker with an existing project
- Support for extra services
- Deploying in production
- Debugging with Xdebug
- TLS Certificates
- Using MySQL instead of PostgreSQL
- Using Alpine Linux instead of Debian
- Using a Makefile
- Updating the template
- Troubleshooting
Symfony Docker is available under the MIT License.
Created by Kévin Dunglas, co-maintained by Maxime Helias and sponsored by Les-Tilleuls.coop.
- Locally install mkcert
sudo apt install libnss3-tools
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" chmod +x mkcert-v*-linux-amd64 sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
- Create the folder storing the certs:
mkdir frankenphp/certs -p
- Generate the certificates for your local host:
mkcert -cert-file frankenphp/certs/tls.pem -key-file frankenphp/certs/tls.key "cq-photo.localhost"
- opcionálisan adjuk hozzá a cert-t a windows-hoz is.
- Másoljuk át ezt a root cert-et a windows-os könytárba, majd egy admin jogú cmd-vel tudjuk telepíteni (álljunk bele a cert könyvtárába)
certutil -addstore -f "ROOT" root.crt
- Másoljuk át ezt a root cert-et a windows-os könytárba, majd egy admin jogú cmd-vel tudjuk telepíteni (álljunk bele a cert könyvtárába)
- docker cp "$(mkcert -CAROOT)/rootCA.pem" cq-photo:/usr/local/share/ca-certificates/rootCA.crt
- docker exec cq:photo sudo update-ca-certificates
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptions
property like this:
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
- Replace
tseslint.configs.recommended
totseslint.configs.recommendedTypeChecked
ortseslint.configs.strictTypeChecked
- Optionally add
...tseslint.configs.stylisticTypeChecked
- Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'
export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
git config --global credential.helper store
``
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
git ls-remote --tags --heads https://[email protected]/p4it-kft/font_awesome_pro.git**
./bin/console doctrine:fixtures:load --group frontend-test