adding token to volume

This commit is contained in:
2025-11-24 16:38:20 +00:00
parent de9b80d3a4
commit ae37643334
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
certbot/
backend/token/

View File

@@ -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 {

View File

@@ -55,6 +55,8 @@ services:
- app-network
env_file:
- ./.env
volumes:
- ./backend/token/:/backend/token
db:
image: postgres:16