WIP : Remets a plat la configuration

This commit is contained in:
2018-02-02 16:32:34 +01:00
parent 8c330bfcd0
commit a936052dd0
6 changed files with 29 additions and 1888 deletions

View File

@@ -25,9 +25,12 @@ http {
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_read_timeout 180;
client_max_body_size 30M;
include fastcgi_params;
}
#fastcgi_read_timeout 180;
#client_max_body_size 30M;
}
access_log /var/log/access.log;
error_log /var/log/error.log error;
}
}

File diff suppressed because it is too large Load Diff

12
config/showErrors.conf Normal file
View File

@@ -0,0 +1,12 @@
[www]
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
php_flag[display_errors] = on
php_admin_value[error_log] = /var/log/php/fpm.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 32M
php_flag[display_startup_errors] = on
catch_workers_output = yes
; for debugging 1h
request_terminate_timeout = 3600

View File

@@ -8,6 +8,7 @@ xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log="/var/log/xdebug/xdebug.log"
xdebug.force_display_errors=On
# Activation du Profiler
xdebug.profiler_enable=1

View File

@@ -8,17 +8,24 @@ mariadb:
environment:
- MYSQL_ROOT_PASSWORD=MyPassWord48
mailcatcher:
image: daiko/mailcatcher:latest
expose:
- 25
ports:
- 1080:1080
php:
image: daiko/phpfpm-dev:latest
expose:
- 9000
volumes:
- ~/Public:/var/www/html
- ~/log/php:/var/log/php
- ~/log/xdebug:/var/log/xdebug
- ./config/php.ini:/usr/local/etc/php/php.ini
- ~/log/php:/var/log/php
- ./config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./config/ssmtpd.conf:/etc/ssmtp/ssmtp.conf
- ./config/showErrors.conf:/usr/local/etc/php-fpm.d/zzz-showErrors.conf
- ./config/ssmtp.conf:/etc/ssmtp/ssmtp.conf
links:
- mariadb
- mailcatcher
@@ -26,9 +33,9 @@ php:
nginx:
image: nginx:latest
volumes:
- ~/Public:/var/www/html
- ~/log/nginx:/var/log/nginx
- ./config/nginx.conf:/etc/nginx/nginx.conf
- ~/Public:/var/www/html
ports:
- 80:80
environment:
@@ -36,13 +43,3 @@ nginx:
- NGINX_PORT=80
links:
- php
mailcatcher:
image: daiko/mailcatcher:latest
volumes:
- ./config/smtpd.conf:/etc/smtpd.conf
- ./config/mailname:/etc/mailname
expose:
- 25
ports:
- 1080:1080