diff --git a/Dockerfile b/Dockerfile index 7e37b25..c8bcbf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,9 @@ RUN install-php-extensions mysqli pdo_mysql \ && curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ && chmod +x /usr/local/bin/wp +# PHP config für Bedrock (variables_order mit E für $_ENV) +COPY php-custom.ini /usr/local/etc/php/conf.d/99-bedrock.ini + # Startup-Script in /etc/entrypoint.d/ (serversideup Standard) COPY --chmod=755 entrypoint.d/ /etc/entrypoint.d/ diff --git a/docker-compose.yaml b/docker-compose.yaml index 5571068..0fe409f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,6 +12,7 @@ services: - "traefik.http.services.wordpress.loadbalancer.server.port=8080" environment: NGINX_WEBROOT: /var/www/html/web + PHP_INI_VARIABLES_ORDER: EGPCS WP_ENV: production WP_HOME: https://kurse.islandpferde-melanieworbs.de WP_SITEURL: https://kurse.islandpferde-melanieworbs.de/wp diff --git a/php-custom.ini b/php-custom.ini new file mode 100644 index 0000000..c9ba763 --- /dev/null +++ b/php-custom.ini @@ -0,0 +1,2 @@ +; WordPress Bedrock - Custom PHP settings +variables_order = "EGPCS"