From 519394a656b4dbe1778e2558887e804e635905b3 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 22 Jun 2022 15:05:44 +0100 Subject: [PATCH] Store data in docker volume instead of project dir --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3d56781..8f676f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,8 @@ version: '3.9' +volumes: + data: + services: nginx: container_name: reftest_server @@ -31,7 +34,7 @@ services: ports: - 5000 volumes: - - ./ref-test/data:/ref-test/data + - data:/ref-test/data restart: unless-stopped networks: - frontend