FOR DEVELOPMENT ONLY
➡️ A simple Docker Symfony setup for beginners who want to play with the Symfony PHP framework. 😎
- php:8.1-cli + PHP extensions
- Composer
- Symfony CLI
- MySQL
- NodeJS
- Non-root user
- Linux OS
- Docker
- Docker-compose
- Clone the repository
git clone https://github.com/mrnavrc/Docker_Symfony_MSQL_Twig_For_Beginners.git
- Run the docker and docker-compose
docker compose build
docker compose up
- Run PHP console
sudo docker exec -it php_c bash
- Check Symfony requirements
symfony check:req
- Create Symfony web app
symfony new project-name --webapp
symfony server:start
- Great, your Symfony app is now available on: http://127.0.0.1:8000