From ae37643334e383b99838b9c199ed5187348c625f Mon Sep 17 00:00:00 2001 From: Adam French Date: Mon, 24 Nov 2025 16:38:20 +0000 Subject: [PATCH] adding token to volume --- .gitignore | 1 + backend/services/spotify.go | 2 +- docker-compose.yml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8d3b4fb..e282f96 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ certbot/ +backend/token/ diff --git a/backend/services/spotify.go b/backend/services/spotify.go index f2d202b..bfc732c 100644 --- a/backend/services/spotify.go +++ b/backend/services/spotify.go @@ -19,7 +19,7 @@ type SpotifyConfig struct { ClientSecret string } -const SPOTIFY_TOKEN_JSON_PATH = "spotify_token.json" +const SPOTIFY_TOKEN_JSON_PATH = "/backend/token/spotify_token.json" func SaveSpotifyToken(path string, tok *oauth2.Token) error { data := struct { diff --git a/docker-compose.yml b/docker-compose.yml index 68e3240..01bbb19 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,6 +55,8 @@ services: - app-network env_file: - ./.env + volumes: + - ./backend/token/:/backend/token db: image: postgres:16