Move around docker storage folders/config
This commit is contained in:
27
resources/docker/nginx/default.conf
Normal file
27
resources/docker/nginx/default.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name phpvms.test;
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
root /var/www/public;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
15
resources/docker/php/Dockerfile
Normal file
15
resources/docker/php/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM php:7.3-fpm-alpine
|
||||
|
||||
#RUN apt-get update
|
||||
#RUN apt-get install -y libgmp-dev
|
||||
RUN apk add gmp-dev
|
||||
|
||||
# Copy any config files in
|
||||
COPY ext-opcache.ini $PHP_INI_DIR/conf.d/
|
||||
|
||||
RUN ln -sf /dev/stderr /var/log/fpm-error.log
|
||||
|
||||
RUN docker-php-ext-install \
|
||||
pdo_mysql \
|
||||
gmp \
|
||||
opcache
|
||||
8
resources/docker/php/ext-opcache.ini
Normal file
8
resources/docker/php/ext-opcache.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
[opcache]
|
||||
opcache.enable = 1
|
||||
opcache.memory_consumption = 128
|
||||
opcache.interned_strings_buffer = 8
|
||||
opcache.max_accelerated_files = 4000
|
||||
opcache.revalidate_freq = 60
|
||||
opcache.fast_shutdown = 1
|
||||
opcache.enable_cli = 1
|
||||
15
resources/docker/php/www.conf
Normal file
15
resources/docker/php/www.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
[www]
|
||||
|
||||
user = www-data
|
||||
group = www-data
|
||||
|
||||
listen = :9000
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
|
||||
php_flag[display_errors] = on
|
||||
php_admin_flag[log_errors] = on
|
||||
Reference in New Issue
Block a user