From 7f40b300b4cc937462ab61c0353f336aa32ab03f Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 15 Jul 2019 16:51:43 +0200 Subject: [PATCH] Specify volume for database in docker-compose.yml --- docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3e95f486..524054b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,4 +32,9 @@ services: restart: always db: image: postgres:alpine - restart: always \ No newline at end of file + volumes: + - "db_data:/var/lib/postgresql/data" + restart: always + +volumes: + db_data: \ No newline at end of file