sudo docker run -dt --rm --tmpfs /fastcgi-cache --link wp_mariadb \
-v $PWD/www:/var/www -p 10086:80 linuxstory/wordpress:php7.4 \
entrypoint.sh --server 127.0.0.1 --site-root /var/www
example.org {
reverse_proxy 127.0.0.1:10086
# tls {
# dns cloudflare <token>
# }
# log
}
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
define( 'WP_SITEURL', 'https://example.org/' );
define( 'WP_HOME', 'https://example.org/' );
mkdir www
rsync -r -a -v -e ssh --delete [email protected]:/var/www/html $PWD/www/
sudo docker run -dt --rm --tmpfs /fastcgi-cache --link wp_mariadb \
-v $PWD/www:/var/www -p 10086:80 linuxstory/wordpress:php7.4 \
entrypoint.sh --server 127.0.0.1 --site-root /var/www
define('DB_NAME', 'xxxx');
/** MySQL数据库用户名 */
define('DB_USER', 'xxxx');
/** MySQL数据库密码 */
define('DB_PASSWORD', 'xxxx');
/** MySQL主机 */
define('DB_HOST', 'wp_mariadb');
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
define( 'WP_SITEURL', 'https://example.org/' );
define( 'WP_HOME', 'https://example.org/' );
example.org {
reverse_proxy 127.0.0.1:10086
# tls {
# dns cloudflare <token>
# }
# log
}
Content type
Image
Digest
Size
130.5 MB
Last updated
about 4 years ago
docker pull linuxstory/wordpress:php7.4