mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-05-07 00:32:11 +08:00
feat: add healthcheck
This commit is contained in:
@@ -18,8 +18,10 @@ services:
|
|||||||
- ERROR_LOG_ENABLED=true
|
- ERROR_LOG_ENABLED=true
|
||||||
- BATCH_UPDATE_ENABLED=true
|
- BATCH_UPDATE_ENABLED=true
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
redis:
|
||||||
- mysql
|
condition: service_started
|
||||||
|
mysql:
|
||||||
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
- CMD-SHELL
|
- CMD-SHELL
|
||||||
@@ -41,6 +43,11 @@ services:
|
|||||||
- MYSQL_DATABASE=${PANEL_DB_NAME}
|
- MYSQL_DATABASE=${PANEL_DB_NAME}
|
||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${PANEL_DB_ROOT_PASSWORD}"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
container_name: ${CONTAINER_NAME}-redis
|
container_name: ${CONTAINER_NAME}-redis
|
||||||
|
|||||||
Reference in New Issue
Block a user