From 1cdca00e73231963dc43044bffa9f96acab5cd52 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 21 Mar 2020 12:50:45 +0100 Subject: [PATCH] docker-compose: Use a named volume instead of a local dir --- docker-compose.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0bfee44..a00f9fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,11 @@ -version: "3" +--- +version: "3.4" + services: db: image: mariadb:10.3 volumes: - - ./data/db:/var/lib/mysql + - db_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: insecure MYSQL_DATABASE: etherpad @@ -20,6 +22,5 @@ services: depends_on: - "db" -# volumes: -# - data/etherpad:/var/www/html/documents - +volumes: + db_data: {}