A Docker image to run a symfony application using nginx and php-fpm
2.1K
A Docker image that can be used to run a symfony app inside a container via nginx and php-fpm.
Create your symfony app.
docker run -d -p 8000:80 -v $(pwd):/var/www unitedasian/symfony
To customize PHP, PHP-FPM settings and nginx configuration, create the relevant configuration files in your host and mount them on the container:
docker run -d -p 8000:80 \
-e "PHP_MEMORY_LIMI=128M"
-e "PHP_TIMEZONE=UTC"
-v $(pwd):/var/www \
unitedasian/symfony
Create a Dockerfile with the following contents:
FROM unitedasian/symfony
docker build -t <image> .
docker run -d -p 8000:80 \
-v $(pwd):/var/www \
<image>
This image does NOT include a Symfony installation. It assumes you already have a working Symfony app which will be mounted on the container.
Content type
Image
Digest
Size
33.7 MB
Last updated
over 10 years ago
docker pull unitedasian/symfony