Giter Club home page Giter Club logo

Comments (4)

michzimny avatar michzimny commented on July 4, 2024

@uglycoyote, thank you for trying this.

I think that what depends_on does is to ensure that a dependency container, i.e. mongo, starts before the other one. However, the mongo application needs some more time to start after the container launches, especially for the first time. I'm not sure it is possible to express such wait times in docker-compose.

In your setup, could you please try the following:

  1. docker-compose down
  2. Clear the $DATA_LOCATION directory
  3. docker-compose up -d mongo and then observe docker-compose logs -f mongo, and wait until it gets ready
  4. docker-compose up -d to bring up all the other services

If it works for you, we can probably add it to my README file as suggested steps for the first launch of the whole application.

from learninglocker2-docker.

uglycoyote avatar uglycoyote commented on July 4, 2024

Yes, that works, so might be good to add to the readme.

from learninglocker2-docker.

uglycoyote avatar uglycoyote commented on July 4, 2024

(thanks very much!)

from learninglocker2-docker.

michzimny avatar michzimny commented on July 4, 2024

Done: b76b8e5. Thanks!

from learninglocker2-docker.

Related Issues (10)

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.