Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot locate database #327

Open
edenraf opened this issue Dec 26, 2023 · 3 comments
Open

Cannot locate database #327

edenraf opened this issue Dec 26, 2023 · 3 comments

Comments

@edenraf
Copy link

edenraf commented Dec 26, 2023

When I try to install your_spotify in docker using an XML file, I get:
Error response from daemon: Bind mount failed: /volume/docker/spotify/your_spotify_db does not exists

I am not sure what I am doing wrong, and I am pretty sure my config is correct:

version: "3"

services:
  server:
    image: yooooomi/your_spotify_server
    restart: always
    ports:
      - "8085:8080"
    links:
      - mongo
    depends_on:
      - mongo
    environment:
      - API_ENDPOINT=http://localhost:8085 # This MUST be included as a valid URL in the spotify dashboard
      - CLIENT_ENDPOINT=http://localhost:3002
      - SPOTIFY_PUBLIC=__public__
      - SPOTIFY_SECRET=__secret__
      - CORS=http://localhost:3000,http://localhost:3001 # all if you want to allow every origin
  mongo:
    container_name: mongo
    image: mongo:6
    volumes:
      - ./your_spotify_db:/data/db

  web:
    image: yooooomi/your_spotify_client
    restart: always
    ports:
      - "3002:3000"
    environment:
      - API_ENDPOINT=http://localhost:8085

of course, public and secret have been redacted

@javier-cr
Copy link

Try this instead:

version: "3"

services:
  server:
    image: yooooomi/your_spotify_server
    restart: always
    ports:
      - "8085:8080"
    links:
      - mongo
    depends_on:
      - mongo
    environment:
      - API_ENDPOINT=http://localhost:8085 # This MUST be included as a valid URL in the spotify dashboard
      - CLIENT_ENDPOINT=http://localhost:3002
      - SPOTIFY_PUBLIC=__public__
      - SPOTIFY_SECRET=__secret__
      - CORS=http://localhost:3000,http://localhost:3001 # all if you want to allow every origin
  mongo:
    container_name: mongo
    image: mongo:6
    volumes:
      - your_spotify_db:/data/db

  web:
    image: yooooomi/your_spotify_client
    restart: always
    ports:
      - "3002:3000"
    environment:
      - API_ENDPOINT=http://localhost:8085
volumes:
    your_spotify_db:

Note the addition of "your_spotify_db" at the end of the file there, and that I removed the "./" within the mongo block.

If this doesn't work, you honestly may want to try the linuxserver version of your_spotify instead. The web and server containers are bundled into one and I found it a lot easier to work with.

@edenraf
Copy link
Author

edenraf commented Jan 16, 2024

Try this instead:

version: "3"

services:
  server:
    image: yooooomi/your_spotify_server
    restart: always
    ports:
      - "8085:8080"
    links:
      - mongo
    depends_on:
      - mongo
    environment:
      - API_ENDPOINT=http://localhost:8085 # This MUST be included as a valid URL in the spotify dashboard
      - CLIENT_ENDPOINT=http://localhost:3002
      - SPOTIFY_PUBLIC=__public__
      - SPOTIFY_SECRET=__secret__
      - CORS=http://localhost:3000,http://localhost:3001 # all if you want to allow every origin
  mongo:
    container_name: mongo
    image: mongo:6
    volumes:
      - your_spotify_db:/data/db

  web:
    image: yooooomi/your_spotify_client
    restart: always
    ports:
      - "3002:3000"
    environment:
      - API_ENDPOINT=http://localhost:8085
volumes:
    your_spotify_db:

Note the addition of "your_spotify_db" at the end of the file there, and that I removed the "./" within the mongo block.

If this doesn't work, you honestly may want to try the linuxserver version of your_spotify instead. The web and server containers are bundled into one and I found it a lot easier to work with.

That allowed me to build and run the project! Now I just need to fix my mongo AVX support issue. Thanks!

@Yooooomi
Copy link
Owner

Just run mongo:4.4 max if you're having avx issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants