worpdress container is running
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# install wordpress with cli : https://make.wordpress.org/cli/handbook/how-to-install/
|
||||
## install wordpress with cli : https://make.wordpress.org/cli/handbook/how-to-install/
|
||||
mkdir -p ${WP_DIR}
|
||||
wp core download --path="${WP_DIR}" --allow-root
|
||||
|
||||
@@ -21,10 +21,14 @@ wp core install \
|
||||
--admin_password="${WP_ADMIN_PSWD}" \
|
||||
--skip-email \
|
||||
--path="${WP_DIR}" --allow-root
|
||||
|
||||
## create user :
|
||||
wp user create \
|
||||
${WP_USER} ${WP_USER_EMAIL} \
|
||||
--user_pass=${WP_USER_PSWD} \
|
||||
--path=${WP_DIR} --allow-root
|
||||
chown -R www-data:www-data /var/www/*
|
||||
chown -R nginx:nginx /var/www/*
|
||||
chmod 755 -R /var/www/*
|
||||
|
||||
exec php-fpm7.3 -F
|
||||
#exec php-fpm7.3 --nodaemonize
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
; inception modifications :
|
||||
; listen :
|
||||
; < listen = wordpress:9000
|
||||
; > listen = /run/php/php7.3-fpm.sock
|
||||
|
||||
|
||||
; Start a new pool named 'www'.
|
||||
; the variable $pool can be used in any directive and will be replaced by the
|
||||
; pool name ('www' here)
|
||||
|
||||
Reference in New Issue
Block a user