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> </head>
<body> <body>
<h1>Hello world!</h1> <h1>Hello world!</h1>
<?php phpinfo(); ?>
</body> </body>
</html> </html>
+13 -1
View File
@@ -10,8 +10,20 @@ services:
- "${LOG_ROOT}:/var/log:rw" - "${LOG_ROOT}:/var/log:rw"
networks: networks:
- server - server
depends_on:
- php
php:
build: ./php/
expose:
- 9000
volumes:
- "${PROJECT_ROOT}:/var/www/html"
networks:
# - database
- server
# depends_on: # depends_on:
# - php # - mysql
networks: networks:
server: server:
+10 -10
View File
@@ -19,16 +19,16 @@ server {
client_max_body_size 100m; client_max_body_size 100m;
# location ~ \.php$ { location ~ \.php$ {
# fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_pass php:9000; fastcgi_pass php:9000;
# fastcgi_index index.php; fastcgi_index index.php;
# include fastcgi_params; include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_intercept_errors off; fastcgi_intercept_errors off;
# fastcgi_buffer_size 16k; fastcgi_buffer_size 16k;
# fastcgi_buffers 4 16k; fastcgi_buffers 4 16k;
# } }
location ~ /\.ht { location ~ /\.ht {
deny all; deny all;
+3
View File
@@ -0,0 +1,3 @@
FROM php:5.6-fpm
# RUN docker-php-ext-install pdo_mysql