ayphu/php-fpm

By ayphu

Updated 3 months ago

PHP FPM

Image
Web Servers
0

224

Ayphu PHP-FPM

PHP Version

  • 7.1
  • 7.3
  • 8.0

Technology

  • composer
  • pdo_mysql
  • zip,unzip
  • SOAP
  • GD
  • Xdebug

config/default.conf

server {
  listen 80;
  listen [::]:80;

  server_name sistema.ayphu.online;

  root   /workspace;
  index  index.php index.html;

  location / {
    try_files $uri $uri/ /index.php?$args;
  }

  location ~ .php$ {
    try_files $uri $uri/ /index.php;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include              fastcgi_params;
    fastcgi_pass         php_project_one:9000;
    fastcgi_read_timeout 6000;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  }
}

docker-compose.yml

version: '3.7'

services:
  nginx_project_one:
    image: openresty/openresty:1.21.4.1-3-alpine
    container_name: nginx_project_one
    restart: always
    volumes:
      - ./config/default.conf:/etc/nginx/conf.d/default.conf
      - ./laravel:/workspace:ro
    networks:
      red:
        ipv4_address: 10.5.0.10
    environment:
      VIRTUAL_HOST: ${DOMAIN}
      LETSENCRYPT_HOST: ${DOMAIN}
      LETSENCRYPT_EMAIL: ${EMAIL}

  php_project_one:
    image: ayphu/php-fpm:7.3
    container_name: php_project_one
    networks:
      red:
        ipv4_address: 10.5.0.11
    restart: always
    volumes:
      - ./laravel:/workspace

networks:
  red:
    name: red
    external: true

Soporte

soporte@ayphu.com

Docker Pull Command

docker pull ayphu/php-fpm