Ajout de docker_wordpress_custom_env
This commit is contained in:
parent
b0bbf26f2d
commit
614d360f54
2 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,7 @@ docker_wordpress_backup_dir: /sauvegarde
|
|||
| docker_wordpress_db_user | | Nom du user proprietaire de la base de donnees |
|
||||
| docker_wordpress_db_password | | Mot de passe du user proprietaire de la base de donnees |
|
||||
| docker_wordpress_backup_dir | | Dossier dans lequel les données seront sauvegardées ou depuis lequel elles seront restaurées |
|
||||
|
||||
| docker_wordpress_custom_env | | Dictionnaire de variables d'environnement supplémentaires à ajouter au conteneur wordpress |
|
||||
|
||||
|
||||
## Poursuite de l'installation dans wordpress
|
||||
|
|
|
@ -11,6 +11,9 @@ services:
|
|||
WORDPRESS_DB_USER: "{{ docker_wordpress_db_user }}"
|
||||
WORDPRESS_DB_PASSWORD: "{{ docker_wordpress_db_password }}"
|
||||
WORDPRESS_DB_NAME: "{{ docker_wordpress_db_name }}"
|
||||
{% if docker_wordpress_custom_env is defined %}{% for _env in docker_wordpress_custom_env %}
|
||||
{{ _env }}: "{{ docker_wordpress_custom_env[_env] }}"
|
||||
{% endfor %}{% endif %}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue