ayphu/php-fpm
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;
}
}
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@ayphu.com
docker pull ayphu/php-fpm