#docker config location

1 messages · Page 1 of 1 (latest)

near wharf
#

When using docker, where should I put the configfile? I have managed to get it started via docker-compose and with web ui. But I don't understand where I should put the configfile (and cookie-file) so it's available inside the docker instance?

rancid jayBOT
#
spotDL Support

Please continue adding more information into this thread.
You should include the following information:

spotDL Version

Eg. 4.0.0

Operating System

Eg. Windows 22H2

The Command You Ran

Please include Spotify links.

Screenshots or Pasted Error Messages

Only send these if they are relevant.

To send pasted error messages use three backticks (```)
Here's info on how to use code blocks.

#

@near wharf

near wharf
#

I figured it out, I think. Or rather a workaround. By sending commands through to the docker-container, I can bypass the whole configfile all together. My docker-compose block looks like this now, and it seems to work fine:
spotdl: container_name: spotdl image: spotdl/spotify-downloader environment: - PUID=1000 - PGID=1000 - TZ=Europe/Oslo ports: - 8899:8899 volumes: - /path/to/my/music/folder:/music command: web --host 0.0.0.0 --port 8899 --keep-alive --client-id <my id> --client-secret <my secret> --bitrate disable --format flac --cookie-file <my cookie-file> restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.spotdl.rule=Host(<my domain name>)" - "traefik.http.routers.spotdl.entrypoints=websecure" - "traefik.http.routers.spotdl.tls=true" - "traefik.http.routers.spotdl.tls.certresolver=letsencrypt" - "traefik.http.services.spotdl.loadbalancer.server.scheme=http" - "traefik.http.services.spotdl.loadbalancer.server.port=8899" - "traefik.http.routers.spotdl.middlewares=authelia@file"