Add healthcheck for docker-compose

このコミットが含まれているのは:
황윤성 2021-10-26 17:13:39 +09:00 committed by GitHub
コミット 06be0fb351
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更5行の追加0行の削除

ファイルの表示

@ -35,6 +35,11 @@ services:
full_refresh: false
https_only: false
domain:
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
interval: 30s
timeout: 5s
retries: 2
depends_on:
- postgres