Container running typecho in Nginx + PHP-FPM
634
English | 简体中文
The repo to build typecho blog
This is a Dockerfile/image, used to nginx and php-fpm build container
If you have any improvement or Suggestions, please in making project page on open questions or request.
| Docker Tag | Nginx Version | PHP Version | Alpine Version | note | port |
|---|---|---|---|---|---|
| nginx-php7.3-fpm | 1.18.0 | 7.3.17 | 3.10 | Integrated NGINX | 80, 443 |
| php7.3-fpm | 1.18.0 | 7.3.17 | 3.10 |
| ation | Version | PHP Version |
|---|---|---|
| php-fpm | 7.3.17 | Core ctype curl date dom fileinfo filter ftp gd hash iconv json libxml mbstring mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session SimpleXML sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib redis |
| nginx | 1.18.0 | --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --with-perl_modules_path=/usr/lib/perl5/vendor_perl --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-Os -fomit-frame-pointer' --with-ld-opt=-Wl,--as-needed |
git init
git remote add typecho https://github.com/Nedved-liao/Dockerfile.git
git fetch typecho
git checkout typecho/master -- typecho
cd typecho/nginx-php-fpm
chmod +x scripts/*
docker build -t typecho:nginx-php7.3-fpm .
cd typecho/php-fpm
chmod +x scripts/*
docker build -t typecho:php7.3-fpm .
sudo docker push nedvedliao/typecho:nginx-php7.3-fpm
sudo docker push nedvedliao/typecho:php7.3-fpm
use nginx-php-fpm:
sudo docker run -d --name typecho -p 80:80 nedvedliao/typecho:nginx-php7.3-fpm
You can use the browser to access http://\ < docker_host \ > / install. Typecho PHP installation
If you want to custom website directory, you can use the following way.
sudo docker run -d --name typecho -p 80:80 -v /your_code_directory:/var/www/html nedvedliao/typecho:nginx-php7.3-fpm
docker run --name typecho -p 80:80 \
-v /your_code_directory:/var/www/html \
-v /your_nginx_conf_path:/etc/nginx/nginx.conf \
-v /your_nginx_virtual_host_conf_path:/etc/nginx/conf.d \
-v /your_nginx_certs_path:/etc/nginx/certs \
-d nedvedliao/typecho:nginx-php7.3-fpm
1.Use nginx-php-fpm project docker-compose.yaml
run docker-compose up -d
2.Use php-fpm project docker-compose.yaml
Need and put the configuration file in nginx directory ,then docker-compose up - d
tree ./nginx
.
├── certs
│ ├── nginx.key
│ └── nginx.pem
├── conf.d
│ └── nginx-site-ssl.conf
└── nginx.conf
Email: [email protected]
Link: https://www.nedved.st
docker pull nedvedliao/typecho:latest