프로젝트
GitHub에서 보기
jetsung/docker-nginx-php
소개
Nginx PHP for Docker
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalNginx and PHP for Docker
English | 简体中文
Version
| Name | Version | Docker tag |
|---|---|---|
| PHP | 8.6.x | latest / 8.6 |
| PHP | 8.5.x | 8.5 |
| PHP | 8.4.x | 8.4 |
| PHP | 8.3.x | 8.3 |
| PHP | 8.2.x | 8.2 |
EOL
| Docker tag | PHP | NGINX |
|---|---|---|
| 8.0.300 | 8.0.30 | 1.24.0 |
| 8.1.320 | 8.1.32 | 1.26.3 |
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
Container Hub
docker pull jetsung/nginx-php:latest
docker pull ghcr.io/jetsung/nginx-php:latest
Manual
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 jetsung/nginx-php:latest
Running
To simply run the container:
docker run --name nginx -p 8080:80 -d jetsung/nginx-php
You can then browse to http://\<docker_host\>:8080 to view the default install files.
docker-compose.yml
version: "3"
services:
nginx-php:
image: jetsung/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 jetsung/nginx-php:latest php --version
## NGINX version
docker run --rm -it jetsung/nginx-php:latest nginx -v
CHANGELOG
관련 프로젝트 살펴보기
불러오는 중…