This is simple docker compose setup using docker with php-fpm and nginx to serve the symfony app.
docker compose up -d
to start the server in the backgrounddocker compose up
to start the server in the foreground with logsdocker compose stop
to stop the serverdocker compose logs -f
to see the logs
docker compose run php-fpm bash
to start a shell in the php-fpm container.- After this you can run symfony commands like:
./bin/console debug:config
- You can also call
bin/console
commands directly from outside the container with./console debug:config
- Open http://127.0.0.1:8000/ for the API Platform webpage