faire le docker compose

faire le .env
This commit is contained in:
0x00000000
2025-06-17 23:26:20 +02:00
parent e6d6667969
commit 8b62562a90
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ RUN mv wp-cli.phar /usr/local/bin/wp
COPY ./conf/auto_config.sh /auto_config.sh COPY ./conf/auto_config.sh /auto_config.sh
RUN chmod +x /auto_config.sh RUN chmod +x /auto_config.sh
RUN mkdir -p /run/php RUN mkdir -p /run/php
ENTRYPOINT ["/auto_config.sh"] ENTRYPOINT ["sh", "/auto_config.sh"]
CMD ["/usr/sbin/php-fpm7.3", "-F"] CMD ["/usr/sbin/php-fpm7.3", "-F"]
@@ -5,5 +5,5 @@ wp config create --allow-root \
--dbpass=$SQL_PASSWORD \ --dbpass=$SQL_PASSWORD \
--dbhost=mariadb:3306 --path='/var/www/wordpress' --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 core install --url=$DOMAIN_NAME --title="$WP_TITLE" --admin_user=$WP_ADMIN_USER --admin_password=$WP_ADMIN_PASSWORD --admin_email=$WP_ADMIN_EMAIL --allow-root
wp user create $WP_NORMAL_USER $WP_NORMAL_USER_EMAIL --user_pass=$WP_NORMAL_USER_PASSWORD --role=author wp user create $WP_NORMAL_USER $WP_NORMAL_USER_EMAIL --user_pass=$WP_NORMAL_USER_PASSWORD --role=author --allow-root