Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkaninda/nginx-fpm
Nginx Web server for PHP FPM
https://github.com/jkaninda/nginx-fpm
nginx php php-fpm
Last synced: 10 days ago
JSON representation
Nginx Web server for PHP FPM
- Host: GitHub
- URL: https://github.com/jkaninda/nginx-fpm
- Owner: jkaninda
- Created: 2022-11-01T07:02:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T04:18:35.000Z (9 months ago)
- Last Synced: 2024-04-30T11:52:29.293Z (7 months ago)
- Topics: nginx, php, php-fpm
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build](https://github.com/jkaninda/nginx-fpm/actions/workflows/build.yml/badge.svg)](https://github.com/jkaninda/nginx-fpm/actions/workflows/build.yml)
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/jkaninda/nginx-fpm?style=flat-square)
![Docker Pulls](https://img.shields.io/docker/pulls/jkaninda/nginx-fpm?style=flat-square)# Nginx Web server for PHP FPM
> 🐳 Nginx Web server for PHP FPM.
- [Docker Hub](https://hub.docker.com/r/jkaninda/nginx-fpm)
- [Github](https://github.com/jkaninda/nginx-fpm)## Simple docker-compose usage:
```yml
version: '3'
services:
nginx-server:
image: jkaninda/nginx-fpm:alpine
container_name: nginx-server
restart: unless-stopped
ports:
- 80:80
volumes:
- ./:/var/www/html
environment:
- DOCUMENT_ROOT=/var/www/html
- CLIENT_MAX_BODY_SIZE=20M
- PHP_FPM_HOST=php-fpm-host:9000
networks:
- default```
## Advanced Nginx-fpm with PHP FPM:
### docker-compose.yml```yml
version: '3'
services:
php-fpm:
image: jkaninda/laravel-php-fpm
container_name: php-fpm
restart: unless-stopped
pull_policy: if_not_present
volumes:
#Project root
- ./:/var/www/html
ports:
- 9000
networks:
- default #if you're using networks between containers
#Nginx server
nginx-server:
image: jkaninda/nginx-fpm:stable
container_name: nginx-server
restart: unless-stopped
depends_on:
- php-fpm
ports:
- 80:80
volumes:
- ./:/var/www/html
environment:
- DOCUMENT_ROOT=/var/www/html/public
- CLIENT_MAX_BODY_SIZE=20M
- PHP_FPM_HOST=php-fpm:9000
networks:
- default```
> P.S. please give a star if you like it :wink: