update docker-compose.yml to define named volumes for database and songs

This commit is contained in:
Chigozirim Igweamaka 2025-04-07 02:42:34 +01:00
parent e740795f46
commit 7b80c0b04e

View file

@ -1,4 +1,9 @@
version: '3.1' version: '3.1'
volumes:
seek-tune-db:
seek-tune-songs:
services: services:
seek-tune: seek-tune:
image: 'seek-tune' image: 'seek-tune'
@ -22,5 +27,5 @@ services:
REACT_APP_BACKEND_URL: ${REACT_APP_BACKEND_URL:-http://localhost:8080} REACT_APP_BACKEND_URL: ${REACT_APP_BACKEND_URL:-http://localhost:8080}
volumes: volumes:
- ./songs:/home/seek-tune/songs - seek-tune-db:/home/seek-tune/db
- ./db:/home/seek-tune/db - seek-tune-songs:/home/seek-tune/songs