Set up symfony with docker
For Mac
brew install symfony-cli/tap/symfony-cli
For Windows
Open a powershell window (not as admininstrator)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
In your normal terminal like bash
scoop install symfony-cli
make build
- Builds local with docker build
- Enables XDebug in container
make run
- Runs the local docker build into container name symfony-api
- Mounts
src
- Install
php
throughhomebrew
- Install
xdebug
throughpecl
- Install
symfony
throughhomebrew
- Install Docker or Docker Desktop
- Run
symfony new src
- Create
docker
folder - Create
Dockerfile
- Create
nginx
folder withdefault.conf
- Create
entrypoint.sh
- Create
.env.example
- Create
Makefile