Add healthcheck for docker-compose

pull/2541/head
황윤성 2021-10-26 17:13:39 +09:00 zatwierdzone przez GitHub
rodzic 5eb83bb39c
commit 06be0fb351
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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