mirror of
https://github.com/cupcakearmy/wordpress-template.git
synced 2025-09-05 15:50:41 +00:00
move to fpm
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
FROM wordpress:5-php7.3-apache
|
||||
|
||||
# # Possible
|
||||
# # bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash
|
||||
# # iconv imap interbase intl json ldap mbstring mysqli oci8 odbc opcache pcntl pdo pdo_dblib
|
||||
# # pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline
|
||||
# # recode reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem
|
||||
# # sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zend_test zip
|
||||
|
||||
RUN docker-php-ext-install pdo_mysql \
|
||||
&& a2enmod ext_filter headers
|
@@ -1,5 +0,0 @@
|
||||
file_uploads = On
|
||||
memory_limit = 512M
|
||||
upload_max_filesize = 512M
|
||||
post_max_size = 512M
|
||||
max_execution_time = 300
|
39
config/nginx/nginx.conf
Normal file
39
config/nginx/nginx.conf
Normal file
@@ -0,0 +1,39 @@
|
||||
server {
|
||||
listen 80;
|
||||
access_log off;
|
||||
|
||||
server_name _;
|
||||
server_tokens off;
|
||||
|
||||
root /var/www/html;
|
||||
index index.php;
|
||||
|
||||
client_max_body_size 512M;
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
||||
include fastcgi.conf;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_pass wordpress:9000;
|
||||
}
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||||
expires max;
|
||||
log_not_found off;
|
||||
}
|
||||
}
|
12
config/wp/Dockerfile
Normal file
12
config/wp/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
# FROM wordpress:5-php7.3-apache
|
||||
FROM wordpress:fpm-alpine
|
||||
|
||||
# Possible extensions to install if needed 👇
|
||||
|
||||
# bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash
|
||||
# iconv imap interbase intl json ldap mbstring mysqli oci8 odbc opcache pcntl pdo pdo_dblib
|
||||
# pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline
|
||||
# recode reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem
|
||||
# sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zend_test zip
|
||||
|
||||
RUN docker-php-ext-install pdo_mysql
|
6
config/wp/custom.conf
Normal file
6
config/wp/custom.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
[www]
|
||||
|
||||
php_admin_value[memory_limit] = 512M
|
||||
php_admin_value[upload_max_filesize] = 512M
|
||||
php_admin_value[post_max_size] = 512M
|
||||
php_admin_value[max_execution_time] = 300
|
Reference in New Issue
Block a user