Sign inSign up

rvntone/nginx-symfony

By rvntone

•Updated over 9 years ago

Base on ubuntu 16.10, has: nginx, php 7.0 fpm (with mysql pdo) for Symfony 3.x and 2.8 applications

Image
0

10K+

rvntone/nginx-symfony repository overview

This docker image has the following packages:

    curl 
    nginx
    php7.0
    php7.0-cli
    php7.0-intl
    php7.0-fpm
    php7.0-gd
    php7.0-mcrypt
    php7.0-mbstring
    php7.0-mysql
    php7.0-imap
    php7.0-curl
    php7.0-xsl
    php7.0-opc
    php7.0-zip
    php7.0-dev
    php7.0-xdebug
    php-pear
    unzip
    nodejs
    npm 
    sendmail

Additionally:

    less (npm module)
    uglify-js (npm module)
    uglifycss (npm module)

The Symfony application has to be mounted on /var/www/html You can access using 8080 port to run the application with app_dev.php controller

The docker runs the cron and the sendmail services

At the start it always runs:

composer self
composer update
rm -rf var/cache/*
php bin/console cache:clear --env=prod --no-debug
php bin/console cache:warmup
php bin/console assets:install --symlink
php bin/console assetic:dump --env=prod
chown -R www-data:www-data var/cache
chown -R www-data:www-data var/logs
chmod ug+rwx var/cache
chmod ug+rwx var/logs

An example using docker-compose:

web:
    image: rvntone/nginx-symfony:latest
    container_name: "my_symfony_app"
    volumes:
      - "/my/local/folder:/var/www/html"

You could use the tag 2.x for and Symfony application 2.8 (use the old folder names var and logs in app)

Tag summary

Content type

Image

Digest

Size

243.1 MB

Last updated

over 9 years ago

docker pull rvntone/nginx-symfony