From 673773b6bf9f542a73d7e5d6132f460c8e129ef3 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 13 Dec 2024 18:06:09 +0100 Subject: [PATCH] fix volume exemples --- exemple/compose/volume/mysql/docker-compose.yml | 7 ++++--- exemple/compose/volume/pgsql/docker-compose.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/exemple/compose/volume/mysql/docker-compose.yml b/exemple/compose/volume/mysql/docker-compose.yml index 9deeb4e..3f1685d 100644 --- a/exemple/compose/volume/mysql/docker-compose.yml +++ b/exemple/compose/volume/mysql/docker-compose.yml @@ -6,7 +6,7 @@ services: restart: unless-stopped command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW volumes: - - dcstable/db:/var/lib/mysql + - dcstable_db:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: dotclear_root MYSQL_DATABASE: dotclear_db @@ -24,7 +24,7 @@ services: container_name: dcstableapp restart: unless-stopped volumes: - - dcstable/app:/var/www/dotclear + - dcstable_app:/var/www/dotclear ports: - 80:80 depends_on: @@ -40,4 +40,5 @@ services: DC_ADMINMAILFROM: contact@exemple.com volumes: - dcstable: \ No newline at end of file + dcstable_db: + dcstable_app: \ No newline at end of file diff --git a/exemple/compose/volume/pgsql/docker-compose.yml b/exemple/compose/volume/pgsql/docker-compose.yml index f7c12aa..e013d66 100644 --- a/exemple/compose/volume/pgsql/docker-compose.yml +++ b/exemple/compose/volume/pgsql/docker-compose.yml @@ -10,7 +10,7 @@ services: POSTGRES_DB: dcstable_db PGDATA: /var/lib/postgresql/data/pgdata volumes: - - dcstable:/var/lib/postgresql/data + - dcstable_db:/var/lib/postgresql/data healthcheck: test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ] interval: 1s @@ -24,7 +24,7 @@ services: ports: - 80:80 volumes: - - dcstable/app:/var/www/dotclear + - dcstable_app:/var/www/dotclear depends_on: dcstabledb: condition: service_healthy @@ -38,4 +38,5 @@ services: DC_ADMINMAILFROM: contact@exemple.com volumes: - dcstable: \ No newline at end of file + dcstable_db: + dcstable_app: \ No newline at end of file