Commit 0a66902f by maxingyu

添加php8

parent 65893741
server { server {
listen 80; listen 80;
server_name query.test;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass php8:9000;
fastcgi_param SCRIPT_FILENAME /query/public/$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
server {
listen 80;
server_name dealer.test; server_name dealer.test;
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
......
...@@ -39,6 +39,15 @@ services: ...@@ -39,6 +39,15 @@ services:
- memcached - memcached
- beanstalkd - beanstalkd
php8:
image: cnice/4wheels-php8:latest
restart: always
volumes:
- ./laravel/query:/query
links:
- dbm
- dbr
dbm: dbm:
image: mysql:5.5 image: mysql:5.5
restart: always restart: always
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment