Skip to content

Commit

Permalink
Fix: restart unhealthy container
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Apr 18, 2024
1 parent 79251fa commit 6e37877
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.base.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
base-api:
image: xtrime/telegram-api-server:latest
init: true
build:
context: .
dockerfile: Dockerfile
Expand All @@ -18,11 +19,10 @@ services:
max-size: "1024k"
max-file: "2"
healthcheck:
test: curl -f http://localhost:9503/system/healthcheck || exit 1
test: timeout 15 curl -f http://localhost:9503/system/healthcheck || bash -c 'kill -INT -1 && (sleep 5; kill -s 9 -1)'
interval: 60s
timeout: 10s
retries: 2
start_period: 60s
timeout: 30s
retries: 1
base-mysql:
image: mariadb:11.1
restart: unless-stopped
Expand Down

0 comments on commit 6e37877

Please sign in to comment.