Skip to content

HTL3R-Radlinger/WEBT_25-26_06-CORE

Repository files navigation

CORE6

  docker compose build --pull --no-cache
  docker compose up --wait
  docker exec -it webt_25-26_06-core-php-1 bash
  git config --global --add safe.directory /app
  composer install

To stop

  docker compose down --remove-orphans

Tips

  • composer require symfony/maker-bundle
  • php bin/console make:controller
    • -> erstellt automatisch Controller und Twig template
  • php bin/console make:entity

New Syfony Project

  • composer create-project syfony/skeleton NAME
    • -> alle wichtigen dinge für webapp werden installiert
  • composer req twig
  • composer req symfony/orm-pack
  • composer req make

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

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.

About

WEBT-VT | CORE | 06 - Symfony - Webservice with basic VC

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors