docker icon indicating copy to clipboard operation
docker copied to clipboard

healthchecks / example

Open joshtrichards opened this issue 1 year ago • 1 comments

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 avatar Jul 01 '24 01:07 joshtrichards

More general healthcheck stuff:

  • https://github.com/renatomefi/php-fpm-healthcheck?tab=readme-ov-file

joshtrichards avatar Mar 01 '25 14:03 joshtrichards