wordpress finis ?
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
FROM debian:bullseye
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get upgrade -y
|
||||||
|
RUN apt-get install wget -y
|
||||||
|
RUN apt-get install php7.3 -y
|
||||||
|
RUN apt-get install php-fpm -y
|
||||||
|
RUN apt-get install php-mysql -y
|
||||||
|
RUN apt-get install mariadb-client -y
|
||||||
|
RUN wget https://fr.wordpress.org/wordpress-6.0-fr_FR.tar.gz -P /var/www
|
||||||
|
RUN cd /var/www && tar -xzf wordpress-6.0-fr_FR.tar.gz && rm wordpress-6.0-fr_FR.tar.gz
|
||||||
|
RUN chown -R root:root /var/www/wordpress
|
||||||
|
COPY ./conf/www.conf /etc/php/7.3/fpm/pool.d/www.conf
|
||||||
|
RUN wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
||||||
|
RUN chmod +x wp-cli.phar
|
||||||
|
RUN mv wp-cli.phar /usr/local/bin/wp
|
||||||
|
COPY ./conf/auto_config.sh /auto_config.sh
|
||||||
|
RUN chmod +x /auto_config.sh
|
||||||
|
RUN mkdir -p /run/php
|
||||||
|
ENTRYPOINT ["/auto_config.sh"]
|
||||||
|
CMD ["/usr/sbin/php-fpm7.3", "-F"]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
sleep 10
|
||||||
|
wp config create --allow-root \
|
||||||
|
--dbname=$SQL_DATABASE \
|
||||||
|
--dbuser=$SQL_USER \
|
||||||
|
--dbpass=$SQL_PASSWORD \
|
||||||
|
--dbhost=mariadb:3306 --path='/var/www/wordpress'
|
||||||
|
|
||||||
|
wp core install --url=$DOMAIN_NAME --title="$WP_TITLE" --admin_user=$WP_ADMIN_USER --admin_password=$WP_ADMIN_PASSWORD --admin_email=$WP_ADMIN_EMAIL
|
||||||
|
wp user create $WP_NORMAL_USER $WP_NORMAL_USER_EMAIL --user_pass=$WP_NORMAL_USER_PASSWORD --role=author
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[www]
|
||||||
|
user = www-data
|
||||||
|
group = www-data
|
||||||
|
listen = 0.0.0.0:9000
|
||||||
|
clear_env = no
|
||||||
|
|
||||||
|
pm = dynamic
|
||||||
|
pm.max_children = 5
|
||||||
|
pm.start_servers = 2
|
||||||
|
pm.min_spare_servers = 1
|
||||||
|
pm.max_spare_servers = 3
|
||||||
Reference in New Issue
Block a user