mirror of
https://github.com/xiaoqidun/pfenv.git
synced 2025-04-04 23:47:53 +08:00
Compare commits
25 Commits
f24f94ed5f
...
main
Author | SHA1 | Date | |
---|---|---|---|
ec68377044 | |||
5694906c24 | |||
89a7135230 | |||
5cc08d5bc7 | |||
8a03d32faf | |||
a732b4957a | |||
53e524a529 | |||
f53a4d5157 | |||
2fe86a064e | |||
d9bdc5a48c | |||
f0938ae3ed | |||
9a321bb67f | |||
d059699121 | |||
53967ad157 | |||
32bb880f63 | |||
2dc7c9ee9d | |||
c10606a2a5 | |||
d66bfff8fa | |||
9f7f829b02 | |||
596aebeb80 | |||
b6c60db15d | |||
23798cccc3 | |||
b8133aaca9 | |||
3ec7695cc0 | |||
973f179a36 |
22
.drone.yml
22
.drone.yml
@ -1,14 +1,26 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: docker
|
||||
|
||||
name: default
|
||||
node:
|
||||
region: cn
|
||||
steps:
|
||||
- name: docker
|
||||
- name: docker-cn
|
||||
pull: if-not-exists
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: xiaoqidun/pfenv
|
||||
repo: ccr.ccs.tencentyun.com/xiaoqidun/pfenv
|
||||
registry: ccr.ccs.tencentyun.com
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: Dockerfile
|
||||
- name: docker-hk
|
||||
pull: if-not-exists
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: hkccr.ccs.tencentyun.com/xiaoqidun/pfenv
|
||||
registry: hkccr.ccs.tencentyun.com
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
|
11
Dockerfile
11
Dockerfile
@ -1,16 +1,19 @@
|
||||
# 基础镜像
|
||||
FROM php:7.4.14-fpm
|
||||
FROM php:8.3.12-fpm
|
||||
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
LABEL authors="xiaoqidun"
|
||||
|
||||
# 安装扩展
|
||||
RUN pecl install redis-5.3.2 \
|
||||
RUN pecl install redis-6.1.0RC1 \
|
||||
&& docker-php-ext-enable redis
|
||||
|
||||
RUN pecl install xdebug-3.0.2 \
|
||||
RUN pecl install xdebug-3.3.2 \
|
||||
&& docker-php-ext-enable xdebug
|
||||
|
||||
RUN pecl install runkit7-4.0.0a6 \
|
||||
&& docker-php-ext-enable runkit7
|
||||
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
dba \
|
||||
exif \
|
||||
|
43
README.md
43
README.md
@ -1,2 +1,45 @@
|
||||
# pfenv
|
||||
php-fpm environment
|
||||
|
||||
# docker
|
||||
|
||||
## 拉取镜像
|
||||
```
|
||||
docker pull hkccr.ccs.tencentyun.com/xiaoqidun/pfenv:latest
|
||||
```
|
||||
|
||||
## docker-compose
|
||||
```
|
||||
version: '3.8'
|
||||
services:
|
||||
php-fpm:
|
||||
image: 'hkccr.ccs.tencentyun.com/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;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user