Skip to content

ankitjain28may/php-nginx-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-nginx-composer

This is a Dockerfile/image to build a container for nginx, php7.2-fpm and composer.

Features

  • You can use git to pull and push code within the container,
  • You can create and edit files using nano.
  • You can use Supervisor for configuring multiple sites.
  • You can use Cron, ssl, unzip.

PHP Extensions/Modules

    [PHP Modules]
    calendar
    Core
    ctype
    curl
    date
    dom
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    hash
    iconv
    intl
    json
    ldap
    libxml
    mbstring
    mcrypt
    memcache
    mysqli
    mysqlnd
    odbc
    openssl
    pcntl
    pcre
    PDO
    pdo_dblib
    pdo_mysql
    PDO_ODBC
    pdo_pgsql
    pdo_sqlite
    pgsql
    Phar
    posix
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    wddx
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib

    [Zend Modules]
    Zend OPcache

Nginx uses php-fpmfor processing php requests through FastCGI.

Ports 80, 3306 and 22 are exposed.

Composer is installed globally for use.

Get Started

To pull from Docker Hub-

    docker pull ankitjain28/php-nginx-composer:latest

Running containers

To run a container -

    sudo docker run --name <container-name> -d ankitjain28/php-nginx-composer

To run commands within Container -

    sudo docker exec -it <container-name> <commands>

Stop the Container -

    sudo docker stop <container-name>

Start the Container -

    sudo docker start <container-name>

Delete the Container -

    sudo docker rm <container-name> -f

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published