Skip to content
/ symfony-docker Public template
forked from dunglas/symfony-docker

A Docker-based installer and runtime for Symfony. Install: download and `docker compose up`.

Notifications You must be signed in to change notification settings

p4it-kft/symfony-docker

 
 

Repository files navigation

Symfony Docker

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

CI

Getting Started

  1. If not already done, install Docker Compose (v2.10+)
  2. Run docker compose build --no-cache to build fresh images
  3. Run docker compose up --pull always -d --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

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.

Prod

Node

dunglas#497

Windows Wsl

Cert

  1. Locally install mkcert
    1. sudo apt install libnss3-tools
    2. 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
  2. Create the folder storing the certs: mkdir frankenphp/certs -p
  3. Generate the certificates for your local host:
    1. mkcert -cert-file frankenphp/certs/tls.pem -key-file frankenphp/certs/tls.key "cq-photo.localhost"
  4. opcionálisan adjuk hozzá a cert-t a windows-hoz is.
    1. 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
  5. docker cp "$(mkcert -CAROOT)/rootCA.pem" cq-photo:/usr/local/share/ca-certificates/rootCA.crt
  6. docker exec cq:photo sudo update-ca-certificates

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

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 to tseslint.configs.recommendedTypeChecked or tseslint.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,
  },
})

yarn git issue

git config --global credential.helper store ``

Or if you have private key

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**

Testing

Frontend

Load fixtures for frontend tests

./bin/console doctrine:fixtures:load --group frontend-test

About

A Docker-based installer and runtime for Symfony. Install: download and `docker compose up`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 58.8%
  • Shell 41.2%