This is a PHP docker image built on Alpine Linux, a lightweight Linux distro.
119
This is a PHP docker image built on Alpine Linux (http://www.alpinelinux.org/), a lightweight Linux distro.
The following requirements are the environments the image has been tested on.
Grab the image from the Docker repository.
PHP 7
docker pull johnnyhuy/php:7
PHP 7 + Apache 2.4
docker pull johnnyhuy/php:7-apache
You can use the following configuration to launch the image from docker-compose.
Replace the square brackets with relevant information.
PHP 7
version: "3.2"
services:
[IMAGE_NAME]:
image: johnnyhuy/php:7
volumes:
- [WEBSITE PATH]:/var/www/localhost
ports:
- 9000:9000
PHP 7 + Apache 2.4
version: "3.2"
services:
[IMAGE_NAME]:
image: johnnyhuy/php:7-apache
volumes:
- [WEBSITE PATH]:/var/www/localhost
ports:
- 80:80
Content type
Image
Digest
Size
21.9 MB
Last updated
almost 9 years ago
docker pull johnnyhuy/php:7