Ajout d'un custom_php.ini

This commit is contained in:
Navas 2023-12-30 18:30:01 +01:00
parent 586c9ac4f5
commit b0bbf26f2d
4 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,4 @@
docker_wordpress_custom_php: |
upload_max_filesize = 16M
post_max_size = 16M
max_execution_time = 60

View file

@ -9,6 +9,7 @@
dest: /opt/{{ docker_wordpress_service_id }}/
with_items:
- docker-compose.yml
- custom_php.ini
notify: docker-compose-up

1
templates/custom_php.ini Normal file
View file

@ -0,0 +1 @@
{{ docker_wordpress_custom_php }}

View file

@ -13,6 +13,7 @@ services:
WORDPRESS_DB_NAME: "{{ docker_wordpress_db_name }}"
volumes:
- {{ docker_wordpress_data_dir }}/{{ docker_wordpress_service_id }}/wp_html:/var/www/html
- ./custom_php.ini:/usr/local/etc/php/conf.d/custom_php.ini
depends_on:
- db
labels: