8000 Improve dependency between services · Issue #180 · RADAR-base/RADAR-Docker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improve dependency between services #180
Open
@yatharthranjan

Description

@yatharthranjan

We can do better dependency management in the compose file (eg - using the health check of other service) for different services using something like below -

    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_started

instead of just

    depends_on:
      - db
      - redis

This will allow services to start after the other service is running and not just created. Also removes the need for applications to sleep for DBs to start up (as is the case in some services in the current setup).

Ref: https://docs.docker.com/compose/compose-file/compose-file-v2/#depends_on

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0