Skip to content

Ini file #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; config/php.ini
upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 512M
max_execution_time = 300
17 changes: 11 additions & 6 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down