Skip to content

Commit

Permalink
rollback personal dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed May 1, 2019
1 parent fc8532c commit fb39099
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
version: "3.7"

services:
fpm:
image: 1maa/php-dev:7.3
app:
build: .
volumes:
- webroot-share:/var/www/xhgui/webroot
- ./config:/var/www/xhgui/config
environment:
- XHGUI_MONGO_HOST=mongodb://mongo:27017
- XHGUI_MONGO_DATABASE=xhprof
volumes:
- .:/var/www/xhgui
working_dir: /var/www/xhgui

web:
image: nginx:1
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./webroot:/var/www/xhgui/webroot
- webroot-share:/var/www/xhgui/webroot
ports:
- "8142:80"

Expand All @@ -31,6 +31,7 @@ services:
- "27017:27017"

volumes:
webroot-share:
mongodb:

# vim:ts=2:sw=2:et
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ server {
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass fpm:9000;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Expand Down

0 comments on commit fb39099

Please sign in to comment.