Help us understand the problem. What is going on with this article?

[server編]nginx + docker + PHP_FPM

More than 3 years have passed since last update.

きっかけ
nginx ➤ 初知りばかり
勉強しましょう!

nginx紹介

・公式サイト:Description
・キーワード:
リバースプロキシ ロードバランシング HTTP キャッシュ

Docker紹介

rebuild.sh
#!/bin/sh
docker-compose down
docker rmi directory/directory-app-nginx:latest
docker rmi directory/directory-app-php:latest
docker build -t directory/directory-app-nginx:latest /home/admin/directory/directory-app/nginx
docker build -t directory/directory-app-php:latest /home/admin/directory/directory-app/php
docker-compose up -d
Dockerfile
# ビルド高速化
COPY src/ /var/www/html/
RUN  chown gpuser:gpuser -R /var/www/html/

# FPMソケット
VOLUME ["/var/run/php-fpm"]

---I Love PHP (。・ω・。)ノ♡

Chelsea
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away