now directly mounting dyn folder into container instead of second root to allow php to read it from web_root
This commit is contained in:
parent
fd28ca9ca3
commit
e3e0f294c3
|
@ -1,4 +1,4 @@
|
|||
version: "3"
|
||||
version: "3.2"
|
||||
|
||||
services:
|
||||
# ssl
|
||||
|
@ -72,6 +72,9 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- ./frontend/nginx:/air
|
||||
- type: bind
|
||||
source: ./volume/flask/dyn
|
||||
target: /air/dyn
|
||||
# lpb-air
|
||||
air:
|
||||
image: nginx
|
||||
|
@ -80,8 +83,10 @@ services:
|
|||
expose:
|
||||
- "80"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./volume/flask/dyn
|
||||
target: /air/dyn
|
||||
- ./frontend/nginx:/air:rw
|
||||
- ./volume/flask/dyn:/dyn:ro
|
||||
- ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
environment:
|
||||
- VIRTUAL_HOST=www.lpb-air.com,lpb-air.com
|
||||
|
|
|
@ -6,10 +6,6 @@ server {
|
|||
access_log /var/log/nginx/access.log;
|
||||
root /air;
|
||||
|
||||
location /dyn/ {
|
||||
alias /dyn/;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
|
|
Loading…
Reference in New Issue