From 3738f08ac2f4fe298c3997c0ae654dd5b63583ae Mon Sep 17 00:00:00 2001 From: ekzyis <27162016+ekzyis@users.noreply.github.com> Date: Tue, 13 Jun 2023 03:22:10 +0200 Subject: [PATCH] Use docker volume for db data (#315) Co-authored-by: ekzyis --- docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c5b84307..447dba85 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ services: - "5431:5432" env_file: - ./.env.sample + volumes: + - db:/var/lib/postgresql/data app: container_name: app build: ./ @@ -47,4 +49,7 @@ services: - db entrypoint: ["/bin/sh", "-c"] command: - - node worker/index.js \ No newline at end of file + - node worker/index.js + +volumes: + db: \ No newline at end of file