Public Repository

Last pushed: 10 hours ago
Short Description
While designed for web development, the PHP scripting language also provides general-purpose use.
Full Description

This alternative collection of images will help you in the PHP development, this use ubuntu:latest has base image, Nginx for web server and SupervisorD to handle all together, have fun :)

Supported tags

Tag PHP Version Composer Nginx Supervisor root other drivers Build
latest 7.0.* yes no no no no
tools 7.0.* yes no no no no
server 7.0.* yes yes yes /var/www no
laravel 7.0.* yes yes yes /var/www/public no
sqlsrv 7.0.* yes yes yes /var/www sqlsrv driver
sqlsrv-tools 7.0.* yes no no no sqlsrv driver
sqlsrv-server 7.0.* yes yes yes /var/www sqlsrv driver
sqlsrv-laravel 7.0.* yes yes yes /var/www/public sqlsrv driver
5.6 5.6.* yes no no no no
5.6-tools 5.6.* yes no no no no
5.6-server 5.6.* yes yes yes /var/www no
5.6-laravel 5.6.* yes yes yes /var/www/public no
5.6-sqlsrv 5.6.* yes yes yes /var/www sqlsrv driver
5.6-sqlsrv-tools 5.6.* yes no no no sqlsrv driver
5.6-sqlsrv-server 5.6.* yes yes yes /var/www sqlsrv driver
5.6-sqlsrv-laravel 5.6.* yes yes yes /var/www/public sqlsrv driver
5.6-sybase 5.6.* no no no /var/www sybase driver
5.6-sybase-tools 5.6.* yes no no /var/www sybase driver
5.6-sybase-server 5.6.* yes yes yes /var/www sybase driver
5.6-sybase-laravel 5.6.* yes yes yes /var/www/public sybase driver

How to use this image

Most simple use:
docker run -it jaschweder/php php -v

PHP 7.0.22-dev (cli) (built: Jul 12 2017 13:23:03) ( ZTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
Running tests with phpunit:
# from your project root directory
docker run --rm -v "$PWD:/var/www" jaschweder/php:tools phpunit
Running a server:
# from your project root directory
docker run -d -v "$PWD:/var/www" jaschweder/php:server
Running a server for Laravel projects:
docker run -d -v "$PWD:/var/www" jaschweder/php:laravel
From Dockerfile
FROM jaschweder/php
COPY . /var/www
WORKDIR /var/www
CMD ['php', 'yourscript.php']

Using with Docker Compose

version: '2'

services:
  server:
    image: jaschweder/php:laravel
    depends_on:
        - redis
        - db
    links:
        - redis
        - db
    volumes:
        - .:/var/www
  redis:
    image: redis:alpine

  db:
    image: mariadb

How to contribute

You are welcome, go to the repository on Github

Bugs

Found a bug or some secure problem ? please, open an issue or send a e-mail to the author

Author

Created and maintained by Jonathan A. Schweder jonathanschweder@gmail.com`

Docker Pull Command
Owner
jaschweder

Comments (0)