mirror of
https://github.com/xiaoqidun/pfenv.git
synced 2024-11-24 06:46:45 +08:00
Compare commits
No commits in common. "3ec7695cc070ac74ff2ba543e0c34cd6ec08ac8e" and "f24f94ed5f85f7353b858a1322f66ae0109162df" have entirely different histories.
3ec7695cc0
...
f24f94ed5f
43
README.md
43
README.md
@ -1,45 +1,2 @@
|
||||
# pfenv
|
||||
php-fpm environment
|
||||
|
||||
# docker
|
||||
|
||||
## 拉取镜像
|
||||
```
|
||||
docker pull xiaoqidun/pfenv:latest
|
||||
```
|
||||
|
||||
## docker-compose
|
||||
```
|
||||
version: '3.8'
|
||||
services:
|
||||
php-fpm:
|
||||
image: 'xiaoqidun/pfenv'
|
||||
restart: 'always'
|
||||
container_name: 'php-fpm'
|
||||
volumes:
|
||||
- '/www:/www'
|
||||
```
|
||||
|
||||
# nginx server
|
||||
```
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name aite.xyz;
|
||||
|
||||
root /www/aite.xyz;
|
||||
index index.htm index.html index.php default.htm default.html default.php;
|
||||
|
||||
autoindex on;
|
||||
autoindex_localtime on;
|
||||
autoindex_exact_size on;
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php-fpm:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user