This is a lightweight stack based on Alpine Linux for running Symfony 6 into Docker containers using docker compose.
name | contains | port |
---|---|---|
php | php-fpm 8.2, composer 2.4, yarn 1.22, node.js 16.17 | 9000 |
nginx | nginx 1.23 | 80 |
mongo | mongoDB 6.0 | 27017 |
run docker and connect to container:
docker compose up -d
docker compose exec php sh
install the latest version of Symfony via composer:
# traditional web application:
composer create-project symfony/website-skeleton .
or
# microservice, console application or API:
composer create-project symfony/skeleton .
open localhost in your browser
https://github.com/mlocati/docker-php-extension-installer
https://github.com/denji/nginx-tuning