Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker image for nginx and PHP7 using php-fpm
Full Description

Docker nginx & PHP 7

NOT FOR PRODUCTION USE

Docker image for nginx and PHP7 using php-fpm

Docker hub

$ docker pull agoes/nginx-php7fpm

Usage

For easier use, create this bash script

#!/bin/bash
# run.sh

DOCKER=$(which docker)
DATA="/your/volume/data"

$DOCKER run -d -h nginx-php7fpm --name nginx-php7fpm \
    -v $DATA/www:/var/www \
    -v $DATA/log/nginx:/var/log/nginx \
    -v $DATA/log/php7:/var/log/php7 \
    nginx-php7fpm

Enable execution (one time) & execute it

$ chmod +x run.sh && ./run.sh

Container shell

$ docker exec -it nginx-php7fpm bash
Docker Pull Command
Owner
agoes
Source Repository