Skip to content

Commit f1e7678

Browse files
Reine SisonReine Sison
Reine Sison
authored and
Reine Sison
committed
Added configuration files.
1 parent 09f13f9 commit f1e7678

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

conf/mariadb/db.env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MYSQL_ROOT_PASSWORD=root123!
2+
MYSQL_USER=devs
3+
MYSQL_PASSWORD=devs123!

conf/nginx/default.conf

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
server {
2+
listen 80 default;
3+
4+
client_max_body_size 108M;
5+
6+
access_log /var/log/nginx/application.access.log;
7+
8+
root /var/www/html;
9+
index index.php;
10+
11+
if (!-e $request_filename) {
12+
rewrite ^.*$ /index.php last;
13+
}
14+
15+
location ~ \.php$ {
16+
fastcgi_pass php-fpm:9000;
17+
fastcgi_index index.php;
18+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
19+
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
20+
fastcgi_buffers 16 16k;
21+
fastcgi_buffer_size 32k;
22+
include fastcgi_params;
23+
}
24+
25+
}

conf/php-fpm/Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM phpdockerio/php73-fpm:latest
2+
WORKDIR "/var/www/html"
3+
4+
# Fix debconf warnings upon build
5+
ARG DEBIAN_FRONTEND=noninteractive
6+
7+
# Install selected extensions and other stuff
8+
RUN apt-get update \
9+
&& apt-get -y --no-install-recommends install php7.3-mysql php7.3-gd php-imagick php7.3-imap php7.3-intl \
10+
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
11+
12+
# Install git
13+
RUN apt-get update \
14+
&& apt-get -y install git \
15+
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

conf/php-fpm/php-ini-overrides.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
upload_max_filesize = 100M
2+
post_max_size = 108M
3+
max_execution_time = 3600
4+
memory_limit = 256M

0 commit comments

Comments
 (0)