all three containers works with alpine and user are configured

This commit is contained in:
hugo gogo
2022-09-19 23:46:28 +02:00
parent 3be5af0e68
commit 334092253f
9 changed files with 129 additions and 80 deletions

View File

@@ -4,10 +4,6 @@
mkdir -p ${WP_DIR}
wp core download --path="${WP_DIR}" --allow-root
# mariadb --execute="CREATE DATABASE ${DB_NAME};" && \
# mariadb --execute="CREATE USER '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PSWD}';" && \
# mariadb --execute="GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO '${DB_USER}'@'localhost' with grant option;"
## create config file :
wp config create \
--dbhost=mariadb \
@@ -28,11 +24,11 @@ wp core install \
## create user :
wp user create \
${WP_USER} ${WP_USER_EMAIL} \
--user_pass=${WP_USER_PSWD} \
--path=${WP_DIR} --allow-root
chown -R nginx:nginx /var/www/*
"${WP_USER}" "${WP_USER_EMAIL}" \
--user_pass="${WP_USER_PSWD}" \
--path="${WP_DIR}" --allow-root
chown -R www-data:www-data /var/www/*
chmod 755 -R /var/www/*
exec php-fpm7.3 -F
#exec php-fpm7.3 --nodaemonize
exec ${PHP_VERSION} -FR

View File

@@ -1,4 +1,5 @@
; inception modifications :
;
; listen :
; < listen = wordpress:9000
; > listen = /run/php/php7.3-fpm.sock