Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add depends_on w/ `condition + healthcheck example #2250

Open
joshtrichards opened this issue Jul 1, 2024 · 0 comments
Open

Add depends_on w/ `condition + healthcheck example #2250

joshtrichards opened this issue Jul 1, 2024 · 0 comments
Labels
docs enhancement examples Compose/Dockerfile/etc

Comments

@joshtrichards
Copy link
Member

Among other things, this may (should) help with some of the timing issues people sometimes report as possible bugs in the Installer.

e.g. (note: do not use this one)

  db: 
    [...]
    healthcheck:
      test: [ "CMD", "healthcheck.sh", "--innodb_initialized" ]
        #start_period: 1m
        #start_interval: 10s
        #interval: 1m
      timeout: 5s
      retries: 6
[...]
  app:
    depends_on:
      db:
        condition: service_healthy
        restart: true
      redis:
        condition: service_started
@joshtrichards joshtrichards added enhancement docs examples Compose/Dockerfile/etc labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs enhancement examples Compose/Dockerfile/etc
Projects
None yet
Development

No branches or pull requests

1 participant