From 86ae0971792f532808b46b7284ca8c6d6d311046 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Mon, 9 Dec 2019 20:53:57 +0400
Subject: [PATCH] Using virtual volumes instead of filesystem.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 Makefile           | 3 +++
 docker-compose.yml | 8 +++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 1472eab..b87e314 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@ all: run
 clean:
 	@docker-compose -f docker-compose.yml down
 
+rm:
+	@docker-compose -f docker-compose.yml down -v
+
 clean_test:
 	@docker-compose -f docker-compose.test.yml run test_builder mvn clean
 	@docker-compose -f docker-compose.test.yml down
diff --git a/docker-compose.yml b/docker-compose.yml
index c9147b8..340584e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -20,7 +20,7 @@ services:
     volumes:
       - .:/app/
       - deploy_app:/tomcat_wars
-      - .m2:/root/.m2
+      - m2:/root/.m2
     depends_on:
       - tomcat
     working_dir: '/app/'
@@ -37,7 +37,7 @@ services:
     ports:
       - 9000:5432
     volumes:
-      - .db_data:/var/lib/postgresql/data
+      - db_data:/var/lib/postgresql/data
 
   adminer:
     image: adminer
@@ -48,4 +48,6 @@ services:
     ports:
       - 9090:8080
 volumes:
-  deploy_app:
\ No newline at end of file
+  deploy_app:
+  m2:
+  db_data:
\ No newline at end of file
-- 
GitLab