Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wandersonwhcr/docker-nginx-php-fpm
Docker (+ Traefik) + NGINX + PHP-FPM = The Right Way
https://github.com/wandersonwhcr/docker-nginx-php-fpm
docker docker-compose kubernetes nginx php-fpm slim-framework traefik
Last synced: 8 days ago
JSON representation
Docker (+ Traefik) + NGINX + PHP-FPM = The Right Way
- Host: GitHub
- URL: https://github.com/wandersonwhcr/docker-nginx-php-fpm
- Owner: wandersonwhcr
- License: mit
- Created: 2021-03-13T02:05:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-10T01:44:12.000Z (over 3 years ago)
- Last Synced: 2024-03-21T02:01:10.229Z (8 months ago)
- Topics: docker, docker-compose, kubernetes, nginx, php-fpm, slim-framework, traefik
- Language: Dockerfile
- Homepage:
- Size: 41 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-nginx-php-fpm
Docker (+ Traefik) + NGINX + PHP-FPM = The Right Way
## Run
```
docker-compose up --detach
docker-compose exec php-fpm composer installdocker-compose up --detach \
--scale nginx=3 \
--scale php-fpm=3
```## Production
```
docker build . --tag wandersonwhcr/hello
```## Deployment
* Docker
```
docker network create hellodocker run \
--detach \
--hostname php-fpm \
--name hello_php-fpm \
--network hello \
wandersonwhcr/hellodocker run \
--detach \
--hostname nginx \
--name hello_nginx \
--network hello \
--volume `pwd`/docker-compose/nginx/templates:/etc/nginx/templates \
nginx:1.19
```* Kubernetes
```
kubectl apply --filename ./kubernetes/ --recursive
```## References
* [renatomefi/php-fpm-healthcheck](https://github.com/renatomefi/php-fpm-healthcheck) POSIX sh Script to HealthCheck PHP-FPM