Upgrade the Docker setup and dependencies
This commit is contained in:
8
docker/nginx/.dockerignore
Normal file
8
docker/nginx/.dockerignore
Normal file
@@ -0,0 +1,8 @@
|
||||
**/*.log
|
||||
**/*.md
|
||||
**/._*
|
||||
**/.DS_Store
|
||||
**/.gitignore
|
||||
**/Thumbs.db
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
3
docker/nginx/Dockerfile
Normal file
3
docker/nginx/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM nginx:1.11-alpine
|
||||
|
||||
COPY conf.d /etc/nginx/conf.d/
|
||||
@@ -1,12 +1,13 @@
|
||||
server {
|
||||
root /srv/api-platform/web;
|
||||
root /srv/app/web;
|
||||
resolver 127.0.0.11;
|
||||
|
||||
location / {
|
||||
# try to serve file directly, fallback to app.php
|
||||
try_files $uri /index.php$is_args$args;
|
||||
}
|
||||
location ~ ^/index\.php(/|$) {
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
# When you are using symlinks to link the document root to the
|
||||
@@ -29,7 +30,4 @@ server {
|
||||
location ~ \.php$ {
|
||||
return 404;
|
||||
}
|
||||
|
||||
error_log /var/log/nginx/app_error.log;
|
||||
access_log /var/log/nginx/app_access.log;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user