You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
xiaoqidun 23798cccc3 feat(更新版本): 更新版本 3 weeks ago
.drone.yml feat(初始项目): 初始项目 3 months ago
.gitignore feat(初始项目): 初始项目 3 months ago
Dockerfile feat(更新版本): 更新版本 3 weeks ago
LICENSE Initial commit 3 months ago
README.md docs(更新文档): 更新文档 3 months ago

README.md

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;
    }
}