Sign inSign up

pretzlaw/php

By pretzlaw

•Updated 3 days ago

PHP 5.3 - 5.6, PHP 6.0, PHP 7.0 - 7.4

Image
2

10K+

pretzlaw/php repository overview

The repo https://hub.docker.com/r/pretzlaw/php/⁠ holds the compiled container of https://github.com/pretzlaw/docker-php⁠ .

⁠Objectives of this repo

Hopefully we keep this up:

  • Have most of the current used PHP versions here.
  • Have it as Apache, CLI and FPM (e.g. for nginx).
  • It should be possible to SSH in each container.
  • Each container should be able ot send mails via relay.

By that they are ready for your own dockerized hosting ;-)

⁠Setup

⁠Docker

⁠docker-compose

Simple as that:

version: '3'
services:
  php:
    image: pretzlaw/php:5.3-apache
    
    # Mount your project / data in "/var/www/html" (document root)
    # or "/var/www" if you have a more complex setup.
    volumes:
      - ".:/var/www/html"
      
    # Make it accessible via http://127.0.0.1:8000
    ports:
      - "8000:80"

Exchange the image name by one of the following tags.

Use one of these:

⁠Meta

⁠Like to contribute or found a problem?

Please leave a message in the issue tracker: https://github.com/pretzlaw/docker-php/issues⁠

Or a simple comment below.

Tag summary

Content type

Image

Digest

sha256:f4cbab41a…

Size

229.3 MB

Last updated

3 days ago

docker pull pretzlaw/php:7.4-apache