Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

wplib/php-fpm-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP 7.2.x PHP 7.1.x PHP 7.0.x PHP 5.6.x

WPLib-Box

WARNING! This has been deprecated! WARNING! This has been deprecated! WARNING!

PHP-FPM Docker Container for WPLib Box

This is the repository for the PHP-FPM Docker container implemented for WPLib-Box. It currently provides versions 5.6.x 7.0.x 7.1.x 7.2.x

Supported tags and respective Dockerfiles

7.2.5, 7.2, latest (7.2.5/Dockerfile)

7.1.17, 7.1 (7.1.17/Dockerfile)

7.0.30, 7.0 (7.0.30/Dockerfile)

5.6.36, 5.6 (5.6.36/Dockerfile)

Using this container.

If you want to use this container as part of WPLib, then use the Docker Hub method. Or you can use the GitHub method to build and run the container.

Using it from Docker Hub

Links

(Docker Hub repo)[https://hub.docker.com/r/wplib/php-fpm/]

(Docker Cloud repo)[https://cloud.docker.com/swarm/wplib/repository/docker/wplib/php-fpm/]

Setup from Docker Hub

A simple docker pull wplib/php-fpm will pull down the latest version.

Runtime from Docker Hub

start - Spin up a Docker container with the correct runtime configs.

docker run -d --name wplib_php-fpm_7.1.17 --restart unless-stopped --network wplibbox -p 9000:9000 --mount type=bind,source=/var/www,target=/var/www --mount type=bind,source=/srv/sites,target=/srv/sites wplib/php-fpm:7.1.17

stop - Stop a Docker container.

docker stop wplib_php-fpm_7.1.17

run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.

docker run --rm --name wplib_php-fpm_7.1.17 --network wplibbox -p 9000:9000 --mount type=bind,source=/var/www,target=/var/www --mount type=bind,source=/srv/sites,target=/srv/sites wplib/php-fpm:7.1.17

shell - Run a shell, (/bin/bash), within a Docker container.

docker run --rm --name wplib_php-fpm_7.1.17 -i -t --network wplibbox -p 9000:9000 --mount type=bind,source=/var/www,target=/var/www --mount type=bind,source=/srv/sites,target=/srv/sites wplib/php-fpm:7.1.17 /bin/bash

rm - Remove the Docker container.

docker container rm wplib_php-fpm_7.1.17

Using it from GitHub repo

Setup from GitHub repo

Simply clone this repository to your local machine

git clone https://github.com/wplib/php-fpm-docker.git

Building from GitHub repo

make build - Build Docker images. Build all versions from the base directory or specific versions from each directory.

make list - List already built Docker images. List all versions from the base directory or specific versions from each directory.

make clean - Remove already built Docker images. Remove all versions from the base directory or specific versions from each directory.

make push - Push already built Docker images to Docker Hub, (only for WPLib admins). Push all versions from the base directory or specific versions from each directory.

Runtime from GitHub repo

When you cd into a version directory you can also perform a few more actions.

make start - Spin up a Docker container with the correct runtime configs.

make stop - Stop a Docker container.

make run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.

make shell - Run a shell, (/bin/bash), within a Docker container.

make rm - Remove the Docker container.

make test - Will issue a stop, rm, clean, build, create and start on a Docker container.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published