From 7b80c0b04e34f1cd5f29940ec7ceb6f2719f2251 Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Mon, 7 Apr 2025 02:42:34 +0100 Subject: [PATCH] update docker-compose.yml to define named volumes for database and songs --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5e2bcd3..9601c8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,9 @@ version: '3.1' + +volumes: + seek-tune-db: + seek-tune-songs: + services: seek-tune: image: 'seek-tune' @@ -22,5 +27,5 @@ services: REACT_APP_BACKEND_URL: ${REACT_APP_BACKEND_URL:-http://localhost:8080} volumes: - - ./songs:/home/seek-tune/songs - - ./db:/home/seek-tune/db \ No newline at end of file + - seek-tune-db:/home/seek-tune/db + - seek-tune-songs:/home/seek-tune/songs \ No newline at end of file