This is simple docker-compose setup using docker with php-fpm and nginx to serve the symfony app.
sudo apt install docker-compose
to install docker-compose on Debian/Ubuntusudo ./build.sh
- to build the docker images and install the PHP dependenciessudo docker-compose up
- to run the server: http://127.0.0.1:8000
sudo docker-compose up -d
to start the server in the backgroundsudo docker-compose up
to start the server in the foreground with logssudo docker-compose stop
to stop the serversudo docker-compose logs -f
to see the logssudo docker-compose restart messenger-worker
restart messenger worker for updating message handling code
./run.sh
to start a shell in the php-fpm container.- After this you can run symfony/composer commands like:
./bin/console debug:config
composer install
composer test
- You can also call
bin/console
commands directly from outside the container with./console debug:config
if you have all dependencies available on the host.
- Open http://127.0.0.1:8000/ for the API Platform webpage
- Open http://localhost:8102/ for phpmyadmin