Skip to content

Commit

Permalink
Addhealth check conf in docker compose
Browse files Browse the repository at this point in the history
- Including recommendation for dev and test usage only
  • Loading branch information
Chaho12 committed Apr 3, 2024
1 parent 4819cb7 commit 6cc0a5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The Docker image of Trino Gateway is designed for the following use cases:
* Automated usage with an orchestration system like Kubernetes to simplify
deployment

## Production setup

The healthcheck configurations in the `docker-compose` file is for suitable for development and testing purposes only.
Change the configuration for your production deployment based on the workload and your specific requirements.

## Build requirements

This docker build process requires the following software:
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "/usr/lib/trino/bin/health-check || exit 1"]
interval: 5s
timeout: 5s
retries: 60
Expand Down

0 comments on commit 6cc0a5c

Please sign in to comment.