Giter Site home page Giter Site logo

Comments (4)

Ekliptor avatar Ekliptor commented on May 29, 2024 1

Thx for your quick help.

I solved it by moving my existing mongodb data from the host machine to a 2nd Docker container as this:

docker-compose.yml

version: "3.3"

services:
  mongo:
    image: mongo:latest
    volumes:
      - db_data:/data/db
    ports:
      - "37017:27017"
    restart: always

  nosqlclient:
    depends_on:
      - mongo
    image: mongoclient/mongoclient:latest
    ports:
      - "3010:3000"
    restart: always
    environment:
      MONGO_URL: mongodb://mongo:27017/sd_index

volumes:
  db_data:
    external: false

from nosqlclient.

rsercano avatar rsercano commented on May 29, 2024

Hello @Ekliptor

I believe docker is connecting to network after startup, but MONGO_URL is being used before startup for nosqlclient's internal storage, so you may use another docker container of mongodb for that part I suppose.

Btw. you don't have to specify MONGO_URL, nosqlclient will start it's own and connect to it, you can just use the binded volume every time to keep your connections etc.

from nosqlclient.

Ekliptor avatar Ekliptor commented on May 29, 2024

Thx for the fast reply.

I want to use another Mongo DB database I have on my local machine. So the easiest solution would be to move that to a 2nd Docker container and use Docker compose.

Would be helpful if you provided some more example setup files.

from nosqlclient.

rsercano avatar rsercano commented on May 29, 2024

I personally not really good at docker clusters, just using nosqlclient without an orcehstration for myself, on the other hand I know a lot of people using nosqlclient with compose and kubernetes, the problem is I'm not really familiar with those, sorry

from nosqlclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.