hammerkit
  • About
  • Installation
  • Getting started
  • Build file
    • Environment Variables
    • References
    • Includes
  • Task
    • Dependencies
    • Needs
    • Caching
    • Container
    • Watching
    • Extending
  • Service
    • Container
    • Kubernetes
  • Labels
  • CLI
    • Init
    • ls
    • Execute
    • Store / Restore
    • Clean
    • Validate
    • Help
  • External Links
    • Docker Hub
    • Homebrew Repository
  • Release Blog
    • Release 1.4.0
    • Release 1.5.0
  • Contribution
    • Roadmap
    • Publishing
Powered by GitBook
On this page

Was this helpful?

  1. Task

Needs

A task can declare needs on services. Hammerkit awaits the start of tasks until all service needs are ready.

Needs can be used to connect services with tasks. Hammerkit will start services depending on the needs of tasks.

Healtchecks will ensure, that the service is ready, before the task gets started.

services:
  postgres:
    image: postgres:12-alpine
    healthcheck:
      cmd: "pg_isready -U postgres"
    
tasks:
  install:
    description: "start api"
    needs: [postgres]
    cmds:
      - node index.js
PreviousDependenciesNextCaching

Last updated 2 years ago

Was this helpful?