Skip to content

Is there a way to extend docker-compose with entrypoints to check container status? #6499

@2XL

Description

@2XL

is ther a way to add a custom script entrypoint that can perform custom status or health checks, its run periodically to check container status, for instance mysql is up and running, mainly for during startup, instead of using restart:always or restart on fail...

web:
  depends_on:
     db:
       status: running # <- boolean, 

db:
 health_check:
  - running:
        entrypoint: script_to_check_if_db_is_running.sh
        interval: 1 # seconds
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions