镜像
1 |
docker pull ickx87/nginx-php-fpm-with-imap:latest |
default.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
server { listen 80; server_name localhost; location / { root /var/www/; index index.html index.htm index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { root /var/www/; fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } |
1 2 |
docker cp default.conf lark-webhook:/etc/nginx/sites-enabled/ docker restart lark-webhook |
1 2 |
#将外部端口8899映射到容器内部80端口上 docker run -d -p 8899:80 --name lark-webhook -v /wwwroot:/var/www --restart=always ickx87/nginx-php-fpm-with-imap |
1 2 |
#其他自打包 https://github.com/richarvey/nginx-php-fpm |
- 本文固定链接: https://www.yoyoask.com/?p=4725
- 转载请注明: shooter 于 SHOOTER 发表