forked from dauxio/daux.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a docker-compose configuration to try to reproduce dauxio#386
- Loading branch information
Showing
4 changed files
with
73 additions
and
0 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
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,18 @@ | ||
version: '2' | ||
|
||
services: | ||
nginx: | ||
image: nginx | ||
ports: | ||
- 8086:80 | ||
volumes: | ||
- ../:/var/www:ro | ||
- ./nginx_default.conf:/etc/nginx/conf.d/default.conf | ||
links: | ||
- phpserver | ||
|
||
phpserver: | ||
image: php:5-fpm | ||
working_dir: /var/www/ | ||
volumes: | ||
- ../:/var/www/ |
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,18 @@ | ||
version: '2' | ||
|
||
services: | ||
nginx: | ||
image: nginx | ||
ports: | ||
- 8086:80 | ||
volumes: | ||
- ../:/var/www:ro | ||
- ./nginx_default.conf:/etc/nginx/conf.d/default.conf | ||
links: | ||
- phpserver | ||
|
||
phpserver: | ||
image: php:7.0-fpm | ||
working_dir: /var/www/ | ||
volumes: | ||
- ../:/var/www/ |
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 80; | ||
server_name daux.io; | ||
|
||
index index.php; | ||
charset utf-8; | ||
|
||
root /var/www; | ||
|
||
location / { | ||
if (!-e $request_filename){ | ||
rewrite ^(.*)$ /index.php$1; | ||
} | ||
} | ||
|
||
location ~ \.php { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
|
||
fastcgi_pass phpserver:9000; | ||
fastcgi_index index.php; | ||
|
||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
} | ||
} |