pfenv/README.md

46 lines
832 B
Markdown
Raw Permalink Normal View History

2021-01-08 14:59:58 +08:00
# pfenv
php-fpm environment
2021-01-08 15:36:58 +08:00
# docker
## 拉取镜像
```
2021-09-08 18:29:05 +08:00
docker pull hkccr.ccs.tencentyun.com/xiaoqidun/pfenv:latest
2021-01-08 15:36:58 +08:00
```
## docker-compose
```
version: '3.8'
services:
php-fpm:
2021-09-08 18:29:05 +08:00
image: 'hkccr.ccs.tencentyun.com/xiaoqidun/pfenv'
2021-01-08 15:36:58 +08:00
restart: 'always'
container_name: 'php-fpm'
volumes:
- '/www:/www'
```
2021-01-08 15:41:37 +08:00
# 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;
}
}
```