Sign inSign up

unitedasian/symfony

By unitedasian

•Updated over 10 years ago

A Docker image to run a symfony application using nginx and php-fpm

Image
0

2.1K

unitedasian/symfony repository overview

⁠unitedasian/docker-symfony

A Docker image that can be used to run a symfony⁠ app inside a container via nginx and php-fpm.

⁠Usage

Create your symfony⁠ app.

⁠Using the original image
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
⁠Using your own image

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>

⁠Important

This image does NOT include a Symfony installation. It assumes you already have a working Symfony app which will be mounted on the container.

Tag summary

Content type

Image

Digest

Size

33.7 MB

Last updated

over 10 years ago

docker pull unitedasian/symfony