mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Voucherify phase 2
This commit is contained in:
+14
-1
@@ -2,6 +2,8 @@ FROM php:7.4-fpm
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN pecl install xdebug-2.9.8 && docker-php-ext-enable xdebug
|
||||
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
@@ -25,4 +27,15 @@ RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
||||
RUN apt-get -y install nodejs
|
||||
|
||||
RUN chown -R www-data:www-data /var/www
|
||||
RUN chmod 755 /var/www
|
||||
RUN chmod 755 /var/www
|
||||
|
||||
# Configure xdebug
|
||||
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
RUN echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
RUN echo "xdebug.remote_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
RUN echo "xdebug.remote_port=9002" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
RUN echo "xdebug.idekey=VSCODE" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
|
||||
# Moved to docker-setup folder
|
||||
# RUN echo 'pm.max_children = 15' >> /usr/local/etc/php-fpm.d/zz-docker.conf && \
|
||||
# echo 'pm.max_requests = 500' >> /usr/local/etc/php-fpm.d/zz-docker.conf
|
||||
|
||||
@@ -44,8 +44,7 @@ services:
|
||||
container_name: exchange-php
|
||||
volumes:
|
||||
- ../:/var/www/html
|
||||
ports:
|
||||
- "9002:9000"
|
||||
- ./php/default.conf:/usr/local/etc/php-fpm.d/zz-docker.conf
|
||||
networks:
|
||||
- exchange-staging
|
||||
#################################################################
|
||||
|
||||
@@ -23,6 +23,13 @@ server {
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_param PHP_VALUE "auto_prepend_file= \n allow_url_include=Off";
|
||||
|
||||
# Xdebug configuration
|
||||
# fastcgi_param XDEBUG_MODE debug;
|
||||
# fastcgi_param XDEBUG_CLIENT_HOST host.docker.internal;
|
||||
# fastcgi_param XDEBUG_CLIENT_PORT 9002;
|
||||
# fastcgi_param XDEBUG_IDE_KEY VSCODE;
|
||||
|
||||
proxy_send_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
fastcgi_send_timeout 3600;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[global]
|
||||
daemonize = no
|
||||
|
||||
[www]
|
||||
listen = 9000
|
||||
|
||||
pm.max_children = 15
|
||||
pm.max_requests = 500
|
||||
Reference in New Issue
Block a user