Coder Social home page Coder Social logo

Comments (7)

wicope avatar wicope commented on July 30, 2024 1

Hi,
https://docs.docker.com/compose/startup-order/

depends_on:
  - "rabbitmq"

from open-ocr.

tleyden avatar tleyden commented on July 30, 2024

5672,eaddrinuse means you have something (RabbitMQ?) already listening on that port.

from open-ocr.

zhao0 avatar zhao0 commented on July 30, 2024

I just install it on a new machine

from open-ocr.

tleyden avatar tleyden commented on July 30, 2024

Thanks @wicope! That's a much cleaner approach than the current docker compose file

from open-ocr.

wicope avatar wicope commented on July 30, 2024
docker ps -a
c30dd164a980        tleyden5iwx/open-ocr                "/opt/open-ocr/open-o"   18 minutes ago      Exited (2) 17 minutes ago                            dockercompose_openocrworker_1
docker logs c30dd164a980
14:12:13.176167 OCR_WORKER: Creating new OCR Worker
14:12:13.185760 OCR_WORKER: Run() called...
14:12:13.186077 OCR_WORKER: dialing "amqp://admin:Cdoe4O8oOalghout4FR4cqfx@rabbitmq/"
14:12:13.322935 OCR_WORKER: error connecting to rabbitmq dial tcp 172.18.0.2:5672: connection refused
14:12:13.323108 PANIC: Error running worker: dial tcp 172.18.0.2:5672: connection refused -- main.main() at main.go:36
panic: Error running worker: dial tcp 172.18.0.2:5672: connection refused
...

https://github.com/docker/compose/blob/master/docs/compose-file.md#depends_on

Controlling startup order in Compose
https://docs.docker.com/compose/startup-order/
https://github.com/docker/compose/blob/master/docs/startup-order.md
https://github.com/vishnubob/wait-for-it
https://github.com/jwilder/dockerize
http://www.onegeek.com.au/articles/waiting-for-dependencies-in-docker-compose
docker/compose#374

from open-ocr.

tleyden avatar tleyden commented on July 30, 2024

Would be great if someone could do pull request to fix the docker compose file

from open-ocr.

tleyden avatar tleyden commented on July 30, 2024

Looks like this was already merged: https://github.com/tleyden/open-ocr/blob/master/docker-compose/docker-compose.yml#L31

from open-ocr.

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.