-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix conf nginx and add docker-compose.yml
- Loading branch information
Showing
21 changed files
with
227 additions
and
70 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 @@ | ||
*.log |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<h1>Hello World!!!</h1> | ||
<h3>PHP Version <?php echo phpversion() ?></h3> | ||
<a href="#">Static HTML Page</a> | ||
<?php echo phpinfo() ?> |
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,19 @@ | ||
nginx: | ||
image: nginx:1.9.5 | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
links: | ||
- php | ||
- memcached | ||
volumes: | ||
- ./app:/var/www/html/dev | ||
- ./nginx/conf.d/app.conf:/etc/nginx/conf.d/default.conf | ||
- ./nginx/logs:/var/log/nginx | ||
memcached: | ||
image: memcached | ||
php: | ||
image: rtancman/docker-symfony:php-7 | ||
volumes: | ||
- ./app:/var/www/html/dev | ||
- ./phpfpm-foreground:/usr/local/bin/phpfpm-foreground |
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,28 @@ | ||
upstream phpfcgi { | ||
server php:9000; | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
root /var/www/html/dev; | ||
|
||
index index.php; | ||
|
||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
if (!-f $document_root$fastcgi_script_name) { | ||
return 404; | ||
} | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | ||
fastcgi_param HTTPS off; | ||
|
||
|
||
fastcgi_pass phpfcgi; | ||
fastcgi_index index.php; | ||
} | ||
} |
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,26 @@ | ||
server { | ||
listen 443; | ||
server_name localhost; | ||
root /var/www/html/dev; | ||
|
||
ssl on; | ||
ssl_certificate /etc/nginx/ssl/nginx.crt; | ||
ssl_certificate_key /etc/nginx/ssl/nginx.key; | ||
|
||
index index.php; | ||
|
||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
if (!-f $document_root$fastcgi_script_name) { | ||
return 404; | ||
} | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | ||
|
||
fastcgi_pass phpfcgi; | ||
fastcgi_index index.php; | ||
} | ||
} |
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 @@ | ||
.gitkeep |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
xdebug.remote_port=9004 \n\ | ||
xdebug.remote_host=X.X.X.X \n\ | ||
|
||
echo -e "xdebug.remote_port=9004 \n\ | ||
xdebug.remote_host=X.X.X.X" >> /usr/local/etc/php/conf.d/xdebug.ini ; | ||
|
||
exec php-fpm |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<h1>Hello World!!!</h1> | ||
<h3>PHP Version <?php echo phpversion() ?></h3> | ||
<a href="#">Static HTML Page</a> | ||
<?php echo phpinfo() ?> |
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,19 @@ | ||
nginx: | ||
image: nginx:1.9.5 | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
links: | ||
- php | ||
- memcached | ||
volumes: | ||
- ./app:/var/www/html/dev | ||
- ./nginx/conf.d/app.conf:/etc/nginx/conf.d/default.conf | ||
- ./nginx/logs:/var/log/nginx | ||
memcached: | ||
image: memcached | ||
php: | ||
image: rtancman/docker-symfony:php-7 | ||
volumes: | ||
- ./app:/var/www/html/dev | ||
- ./phpfpm-foreground:/usr/local/bin/phpfpm-foreground |
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,28 @@ | ||
upstream phpfcgi { | ||
server php:9000; | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
root /var/www/html/dev; | ||
|
||
index index.php; | ||
|
||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
if (!-f $document_root$fastcgi_script_name) { | ||
return 404; | ||
} | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | ||
fastcgi_param HTTPS off; | ||
|
||
|
||
fastcgi_pass phpfcgi; | ||
fastcgi_index index.php; | ||
} | ||
} |
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,26 @@ | ||
server { | ||
listen 443; | ||
server_name localhost; | ||
root /var/www/html/dev; | ||
|
||
ssl on; | ||
ssl_certificate /etc/nginx/ssl/nginx.crt; | ||
ssl_certificate_key /etc/nginx/ssl/nginx.key; | ||
|
||
index index.php; | ||
|
||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
if (!-f $document_root$fastcgi_script_name) { | ||
return 404; | ||
} | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | ||
|
||
fastcgi_pass phpfcgi; | ||
fastcgi_index index.php; | ||
} | ||
} |
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 @@ | ||
.gitkeep |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
xdebug.remote_port=9004 \n\ | ||
xdebug.remote_host=X.X.X.X \n\ | ||
|
||
echo -e "xdebug.remote_port=9004 \n\ | ||
xdebug.remote_host=X.X.X.X" >> /usr/local/etc/php/conf.d/xdebug.ini ; | ||
|
||
exec php-fpm |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<h1>Hello World!!!</h1> | ||
<h3>PHP Version <?php echo phpversion() ?></h3> | ||
<a href="#">Static HTML Page</a> | ||
<?php echo phpinfo() ?> |
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,19 @@ | ||
nginx: | ||
image: nginx:1.9.5 | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
links: | ||
- php | ||
- memcached | ||
volumes: | ||
- ./app:/var/www/html/dev | ||
- ./nginx/conf.d/app.conf:/etc/nginx/conf.d/default.conf | ||
- ./nginx/logs:/var/log/nginx | ||
memcached: | ||
image: memcached | ||
php: | ||
image: rtancman/docker-symfony:php-7 | ||
volumes: | ||
- ./app:/var/www/html/dev | ||
- ./phpfpm-foreground:/usr/local/bin/phpfpm-foreground |
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
upstream phpfcgi { | ||
server php:9000; | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
root /var/www/html/dev; | ||
|
||
index index.php; | ||
|
||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
if (!-f $document_root$fastcgi_script_name) { | ||
return 404; | ||
} | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | ||
fastcgi_param HTTPS off; | ||
|
||
|
||
fastcgi_pass phpfcgi; | ||
fastcgi_index index.php; | ||
} | ||
} |
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,26 @@ | ||
server { | ||
listen 443; | ||
server_name localhost; | ||
root /var/www/html/dev; | ||
|
||
ssl on; | ||
ssl_certificate /etc/nginx/ssl/nginx.crt; | ||
ssl_certificate_key /etc/nginx/ssl/nginx.key; | ||
|
||
index index.php; | ||
|
||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
if (!-f $document_root$fastcgi_script_name) { | ||
return 404; | ||
} | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | ||
|
||
fastcgi_pass phpfcgi; | ||
fastcgi_index index.php; | ||
} | ||
} |
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 @@ | ||
.gitkeep |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
xdebug.remote_port=9004 \n\ | ||
xdebug.remote_host=X.X.X.X \n\ | ||
|
||
echo -e "xdebug.remote_port=9004 \n\ | ||
xdebug.remote_host=X.X.X.X" >> /usr/local/etc/php/conf.d/xdebug.ini ; | ||
|
||
exec php-fpm |