File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,10 @@ server {
14
14
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
15
15
fastcgi_param PATH_INFO $fastcgi_path_info ;
16
16
}
17
+
18
+ # Static files
19
+ location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|txt)$ {
20
+ access_log off ;
21
+ expires 30d ;
22
+ }
17
23
}
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ services:
8
8
container_name : ${APP_NAME:?err}-php
9
9
volumes :
10
10
- ' ./app:/var/www/html'
11
+ depends_on :
12
+ - mariadb
11
13
12
14
nginx :
13
15
image : nginx:latest
Original file line number Diff line number Diff line change @@ -4,4 +4,6 @@ RUN apt-get update && \
4
4
apt-get install -y git zip
5
5
6
6
RUN curl --silent --show-error https://getcomposer.org/installer | php && \
7
- mv composer.phar /usr/local/bin/composer
7
+ mv composer.phar /usr/local/bin/composer
8
+
9
+ RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
You can’t perform that action at this time.
0 commit comments