Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Raised docker-compose version to 3 Set error_reporting to E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT Readme: Set correct links to it Nginx: Deny all hidden files that starts with a '.' First docker environment is ready and runnable Remove the set of "error_reporting" Removed mysql_ functionality in favor of mysqli Fixed constructor names for PHP7 while calling installation
- Loading branch information
Showing
9 changed files
with
178 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
server { | ||
listen 80; | ||
index index.php index.html; | ||
server_name localhost; | ||
error_log /var/log/nginx/error.log; | ||
access_log /var/log/nginx/access.log; | ||
root /code; | ||
|
||
# Deny all hidden files that starts with a '.' | ||
location ~ /\. { | ||
deny all; | ||
access_log off; | ||
log_not_found off; | ||
} | ||
|
||
location ~ \.php$ { | ||
try_files $uri =404; | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass php:9000; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
catch_workers_output = yes | ||
|
||
php_admin_flag[log_errors] = on | ||
php_flag[display_errors] = on | ||
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_DEPRECATED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM php:7.0-fpm | ||
|
||
# Install PHP-Extensions that are not provided by the base image | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libsnmp-dev \ | ||
snmp \ | ||
&& docker-php-ext-install -j$(nproc) mysqli snmp \ | ||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | ||
&& docker-php-ext-install -j$(nproc) gd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3' | ||
|
||
services: | ||
web: | ||
image: nginx:latest | ||
ports: | ||
- "8080:80" | ||
volumes: | ||
- .:/code | ||
- ./.docker/nginx-development.conf:/etc/nginx/conf.d/default.conf | ||
networks: | ||
- code-network | ||
php: | ||
image: lansuite/lansuite:latest | ||
volumes: | ||
- .:/code | ||
- ./.docker/nginx-php-flags.conf:/usr/local/etc/php-fpm.d/php-flags.conf | ||
networks: | ||
- code-network | ||
mysql: | ||
image: mysql:5.5 | ||
environment: | ||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | ||
- MYSQL_DATABASE="lansuite" | ||
networks: | ||
- code-network | ||
|
||
networks: | ||
code-network: | ||
driver: bridge |
Oops, something went wrong.