Docker (+ Traefik) + NGINX + PHP-FPM = The Right Way
docker-compose up --detach
docker-compose exec php-fpm composer install
docker-compose up --detach \
--scale nginx=3 \
--scale php-fpm=3
docker build . --tag wandersonwhcr/hello
- Docker
docker network create hello
docker run \
--detach \
--hostname php-fpm \
--name hello_php-fpm \
--network hello \
wandersonwhcr/hello
docker 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
- renatomefi/php-fpm-healthcheck POSIX sh Script to HealthCheck PHP-FPM