Correction chemin docker-compose

This commit is contained in:
Navas 2023-01-09 22:09:19 +01:00
parent 6a607ce5d9
commit 94dffdcf33

View file

@ -12,7 +12,7 @@ services:
WORDPRESS_DB_PASSWORD: "{{ docker_wordpress_db_password }}" WORDPRESS_DB_PASSWORD: "{{ docker_wordpress_db_password }}"
WORDPRESS_DB_NAME: "{{ docker_wordpress_db_name }}" WORDPRESS_DB_NAME: "{{ docker_wordpress_db_name }}"
volumes: volumes:
- /data1/{{ docker_wordpress_service_id }}/wp_html:/var/www/html - {{ docker_wordpress_data_dir }}/{{ docker_wordpress_service_id }}/wp_html:/var/www/html
depends_on: depends_on:
- db - db
labels: labels:
@ -29,7 +29,7 @@ services:
image: mariadb:10.8.2-rc-focal image: mariadb:10.8.2-rc-focal
restart: always restart: always
volumes: volumes:
- {{ docker_wordpress_data_dir }}/data1/{{ docker_wordpress_service_id }}/mysql:/var/lib/mysql - {{ docker_wordpress_data_dir }}/{{ docker_wordpress_service_id }}/mysql:/var/lib/mysql
environment: environment:
# genere un mdp root et l'affiche au demarrage sur stdout # genere un mdp root et l'affiche au demarrage sur stdout
MARIADB_RANDOM_ROOT_PASSWORD: "yes" MARIADB_RANDOM_ROOT_PASSWORD: "yes"