php 5.6-fpm is working

This commit is contained in:
Bachir Soussi Chiadmi
2018-01-13 12:31:05 +01:00
parent 0fe6f1dc6c
commit 66457e6eb2
4 changed files with 27 additions and 11 deletions
+1
View File
@@ -6,5 +6,6 @@
</head>
<body>
<h1>Hello world!</h1>
<?php phpinfo(); ?>
</body>
</html>
+13 -1
View File
@@ -10,8 +10,20 @@ services:
- "${LOG_ROOT}:/var/log:rw"
networks:
- server
depends_on:
- php
php:
build: ./php/
expose:
- 9000
volumes:
- "${PROJECT_ROOT}:/var/www/html"
networks:
# - database
- server
# depends_on:
# - php
# - mysql
networks:
server:
+10 -10
View File
@@ -19,16 +19,16 @@ server {
client_max_body_size 100m;
# location ~ \.php$ {
# 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_intercept_errors off;
# fastcgi_buffer_size 16k;
# fastcgi_buffers 4 16k;
# }
location ~ \.php$ {
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_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
location ~ /\.ht {
deny all;
+3
View File
@@ -0,0 +1,3 @@
FROM php:5.6-fpm
# RUN docker-php-ext-install pdo_mysql