diff --git a/Dockerfile b/Dockerfile index f431e4a..581c07f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ FROM wordpress:5.3.2-apache RUN apt-get update && apt-get install -y magic-wormhole +COPY php.ini /usr/local/etc/php/config.d/custom.ini + RUN usermod -s /bin/bash www-data RUN chown www-data:www-data /var/www USER www-data:www-data diff --git a/php.ini b/php.ini new file mode 100644 index 0000000..c17e797 --- /dev/null +++ b/php.ini @@ -0,0 +1,5 @@ +; config/php.ini +upload_max_filesize = 100M +post_max_size = 100M +memory_limit = 512M +max_execution_time = 300 diff --git a/render.yaml b/render.yaml index 2383a5d..a0d2e81 100644 --- a/render.yaml +++ b/render.yaml @@ -2,12 +2,17 @@ services: - type: web name: wordpress env: docker - plan: standard + plan: starter autoDeploy: false disk: name: wordpress mountPath: /var/www/html - sizeGB: 20 + sizeGB: 5 + envVars: + - key: WORDPRESS_CONFIG_EXTRA + value: | + upload_max_filesize = 64M; + post_max_size = 64M; envVars: - key: WORDPRESS_DB_HOST fromService: @@ -33,17 +38,17 @@ services: name: mysql-wordpress repo: https://github.com/render-examples/mysql.git env: docker - plan: standard + plan: starter autoDeploy: false disk: name: mysql-wordpress mountPath: /var/lib/mysql - sizeGB: 20 + sizeGB: 5 envVars: - key: MYSQL_DATABASE - value: mysql + value: wp_db - key: MYSQL_USER - value: mysql + value: wp_user - key: MYSQL_PASSWORD generateValue: true - key: MYSQL_ROOT_PASSWORD