All Projects → skiy → docker-nginx-php

skiy / docker-nginx-php

Licence: MIT license
Nginx PHP for Docker

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
HTML
75241 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to docker-nginx-php

crypto
Aplus Framework Crypto Library
Stars: ✭ 20 (-83.47%)
Mutual labels:  php8
Nutgram
The Telegram bot framework that doesn't drive you nuts.
Stars: ✭ 206 (+70.25%)
Mutual labels:  php8
amp-converter
A PHP library to convert HTML articles, blog posts or similar content to AMP (Accelerated Mobile Pages).
Stars: ✭ 59 (-51.24%)
Mutual labels:  php8
dnmp
docker-compose部署LNMP环境 Nginx/Openresty、MySQL(5.7、8.0、8.1)、PHP7.4(8.0、5.6)、Redis5.0、PHPMyAdmin、Xdebug、RabbitMQ、Nacos
Stars: ✭ 138 (+14.05%)
Mutual labels:  php8
crossword
The game is implemented as an example of scalable and high load architecture combined with modern software development practices
Stars: ✭ 56 (-53.72%)
Mutual labels:  php8
docker-lemp
A single container LEMP complete fullstack with latest release of PHP7.4.33, 8.0.26 & 8.1.13/8.2RC and MySQL, nginx, PostgreSQL, phalcon, swoole, mailcatcher, beanstalkd, elasticsearch, memcached, redis, adminer and all you ever need; on top alpine3.15
Stars: ✭ 106 (-12.4%)
Mutual labels:  php8
git-stars
Discover your ranking on GitHub
Stars: ✭ 37 (-69.42%)
Mutual labels:  php8
laravel-soap
Laravel Soap Client
Stars: ✭ 140 (+15.7%)
Mutual labels:  php8
darknet
php ffi darknet
Stars: ✭ 21 (-82.64%)
Mutual labels:  php8
session
Aplus Framework Session Library
Stars: ✭ 170 (+40.5%)
Mutual labels:  php8
resiliency
A modern PHP library that allows you to make resilient calls to external services 🔁
Stars: ✭ 79 (-34.71%)
Mutual labels:  php8
cache
Aplus Framework Cache Library
Stars: ✭ 18 (-85.12%)
Mutual labels:  php8
static-php-cli
Build single static PHP binary in linux, build with PHP project together, with Swoole and other popular extensions included.
Stars: ✭ 129 (+6.61%)
Mutual labels:  php8
http-range
A PHP library for parsing and handling HTTP range requests.
Stars: ✭ 30 (-75.21%)
Mutual labels:  php8
pagination
Aplus Framework Pagination Library
Stars: ✭ 167 (+38.02%)
Mutual labels:  php8
log
Aplus Framework Log Library
Stars: ✭ 14 (-88.43%)
Mutual labels:  php8
spe
A series of PHP8 examples based around a super simple MVC framework (WIP)
Stars: ✭ 14 (-88.43%)
Mutual labels:  php8
FoxPHP
一个轻量级的Nginx+PHP8本地开发环境
Stars: ✭ 8 (-93.39%)
Mutual labels:  php8
routing
Aplus Framework Routing Library
Stars: ✭ 186 (+53.72%)
Mutual labels:  php8
Stratum-Panel
Stratum aims to be a scalable, reliable panel better than most solutions on the market made for selling virtual machines. It works by utilizing Proxmox's API to automatically manage/deploy virtual machines. Stratum is made in Laravel.
Stars: ✭ 26 (-78.51%)
Mutual labels:  php8

Nginx and PHP for Docker

English | 简体中文

Version

Last Version

Name Version Docker tag
NGINX 1.22.x -
PHP 8.1.x latest / 8.1
PHP 8.0.x 8.0
PHP 7.4.x 7.4

EOL

Docker tag PHP NGINX
7.3 7.3.33 1.21.5
7.2 7.2.34 1.21.5

Include extensions

bcmath,Core,ctype,curl,date,dom,exif,fileinfo,filter,ftp,gd,gettext,hash,iconv,intl,json,libxml,mbstring,mysqli,mysqlnd,openssl,pcntl,pcre,PDO,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,Phar,posix,redis,Reflection,session,shmop,SimpleXML,soap,sockets,sodium,SPL,sqlite3,standard,sysvsem,tokenizer,xml,xmlreader,xmlwriter,xsl,zip,zlib

Custom extension

Docker Hub

Nginx-PHP: https://hub.docker.com/r/devcto/nginx-php

Build

git clone https://github.com/jetsung/docker-nginx-php.git

cd nginx-php

docker build --build-arg PHP_VERSION="8.1.1" \
  --build-arg NGINX_VERSION="1.20.0" \
  -t nginx-php:8.1 \
  -f ./Dockerfile .

Installation

Pull the image from the docker index rather than downloading the git repo. This prevents you having to build the image on every docker host.

docker pull devcto/nginx-php:latest

Running

To simply run the container:

docker run --name nginx -p 8080:80 -d devcto/nginx-php

You can then browse to http://\<docker_host\>:8080 to view the default install files.

docker-compose.yaml

version: '3'
services:
  nginx-php:
    image: devcto/nginx-php:latest
    ports:
      - "38080:80"

Command line tools

Use docker exec {CONTAINER ID} {COMMAND}

# Current process
docker exec {CONTAINER ID} ps -ef
# Current PHP version
docker exec {CONTAINER ID} php --version

# supervisord
## HELP
docker exec {CONTAINER ID} supervisorctl --help
## STOP, START, STATUS (stop/start/status)
docker exec {CONTAINER ID} supervisorctl stop all
## STOP NGINX / PHP
docker exec {CONTAINER ID} supervisorctl stop nginx/php-fpm

# Container not started
## PHP version
docker run --rm -it devcto/nginx-php:latest php --version

## NGINX version
docker run --rm -it devcto/nginx-php:latest nginx -v

CHANGELOG

License

This project is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].