/symfony-docker

This is a lightweight stack based on Alpine Linux for running Symfony 6 into Docker containers using docker compose.

Primary LanguageDockerfile

Symfony 6 Docker-Development-Stack

This is a lightweight stack based on Alpine Linux for running Symfony 6 into Docker containers using docker compose.

Container

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

Installing

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 .

Ready up

open localhost in your browser

Reference links

https://github.com/mlocati/docker-php-extension-installer
https://github.com/denji/nginx-tuning