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

Cant connect to mongo database #470

Open
NaufalF22 opened this issue Dec 24, 2024 · 0 comments
Open

Cant connect to mongo database #470

NaufalF22 opened this issue Dec 24, 2024 · 0 comments

Comments

@NaufalF22
Copy link

NaufalF22 commented Dec 24, 2024

Im frustrate because mongo cant connect to your spotify server.

Just run

Additional context

here my docker compose (i use casa os and mongo 3 because my arm server cant handle mongo 4.4)

name: energetic_matheson
services:
  mongo:
    cpu_shares: 10
    command: []
    container_name: mongo
    deploy:
      resources:
        limits:
          memory: 256M
    hostname: mongo
    image: mongo:3
    labels:
      icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/your_spotify-logo.png
    ports:
      - target: 27017
        published: "27017"
        protocol: tcp
    restart: always
    volumes:
      - type: bind
        source: /DATA/AppData/mongo
        target: /data/db
    devices: []
    cap_add: []
    environment: []
    network_mode: bridge
    privileged: false
  server:
    cpu_shares: 10
    command: []
    depends_on:
      mongo:
        condition: service_started
        required: true
    deploy:
      resources:
        limits:
          memory: 256M
    environment:
      - API_ENDPOINT=http://localhost:8080
      - CLIENT_ENDPOINT=http://localhost:3000
      - MONGO_ENDPOINT=mongodb://mongo:27017
      - SPOTIFY_PUBLIC=-
      - SPOTIFY_SECRET=-
    image: yooooomi/your_spotify_server:latest
    labels:
      icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/your_spotify-logo.png
    links:
      - mongo
    ports:
      - target: 8080
        published: "8080"
        protocol: tcp
    restart: always
    volumes: []
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
    container_name: ""
    hostname: ""
  web:
    cpu_shares: 50
    command: []
    deploy:
      resources:
        limits:
          memory: 256M
    environment:
      - API_ENDPOINT=http://localhost:8080
    image: yooooomi/your_spotify_client:latest
    labels:
      icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/your_spotify-logo.png
    ports:
      - target: 3000
        published: "3000"
        protocol: tcp
    restart: always
    volumes: []
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
    container_name: ""
    hostname: ""
x-casaos:
  author: self
  category: self
  hostname: ""
  icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/your_spotify-logo.png
  index: /
  is_uncontrolled: false
  port_map: "3000"
  scheme: http
  store_app_id: energetic_matheson
  title:
    custom: Your_spotify
    en_us: server

Screenshots

here's the log of mongo
image
the ip on screenshot before is your spotify ip server
image
here when i open the app
image

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

1 participant