mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-12-02 09:17:46 +01:00
Fix: restart unhealthy container
This commit is contained in:
parent
79251fa81a
commit
6e37877ca2
@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
base-api:
|
base-api:
|
||||||
image: xtrime/telegram-api-server:latest
|
image: xtrime/telegram-api-server:latest
|
||||||
|
init: true
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@ -18,11 +19,10 @@ services:
|
|||||||
max-size: "1024k"
|
max-size: "1024k"
|
||||||
max-file: "2"
|
max-file: "2"
|
||||||
healthcheck:
|
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
|
interval: 60s
|
||||||
timeout: 10s
|
timeout: 30s
|
||||||
retries: 2
|
retries: 1
|
||||||
start_period: 60s
|
|
||||||
base-mysql:
|
base-mysql:
|
||||||
image: mariadb:11.1
|
image: mariadb:11.1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user