Skip to content

cogso/apache-php56

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

apache-php56

Apache and PHP 5.6 image based on Alpine

Docker image usage

docker run [docker-options] cogso/apache-php56

Examples

Typical basic usage:

docker run -it cogso/apache-php56

Typical usage in Dockerfile:

FROM cogso/apache-php56
RUN echo "<?php phpinfo() ?>" > /app/index.php

Typical usage:

docker run -it --link=somedb:db cogso/apache-php56

Typical usage in docker-compose.yml:

version: '2'

services:
	web:
	    image: cogso/apache-php56
	    container_name: apache_php56
	    ports:
	       - 80:80
	       - 443:443
	    volumes:    # Volumes (directories) to mount
	      - ${PWD}/app:/app/
	      - ${PWD}/logs:/var/log/apache2/
	    restart: always
	    mem_limit: 128m
Run: docker-compose up -d

About

Apache and PHP 5.6 image based on Alpine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages