mirror of
https://github.com/acepanel/templates.git
synced 2026-02-04 08:57:16 +08:00
feat: 添加健康检查
This commit is contained in:
@@ -22,6 +22,12 @@ services:
|
||||
volumes:
|
||||
- ./data/work:/opt/adguardhome/work
|
||||
- ./data/conf:/opt/adguardhome/conf
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:3000 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -9,7 +9,12 @@ services:
|
||||
ports:
|
||||
- ${CERTD_PORT_HTTP}:7001
|
||||
- ${CERTD_PORT_HTTPS}:7002
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:7001 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
services:
|
||||
certimate:
|
||||
image: certimate/certimate:v0.4.14
|
||||
@@ -16,4 +13,13 @@ services:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- ./data:/app/pb_data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8090 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -8,7 +8,12 @@ services:
|
||||
- ./data:/app/www
|
||||
ports:
|
||||
- ${DNSMGR_PORT_HTTP}:80
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:80 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -22,7 +22,12 @@ services:
|
||||
- ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
|
||||
- xpack.security.enabled=${ELASTICSEARCH_SECURITY}
|
||||
- ${ELASTICSEARCH_JAVA_OPTS}
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:9200/_cluster/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -6,9 +6,14 @@ services:
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./data:/data/
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -16,7 +16,12 @@ services:
|
||||
- "./data/logs:/var/log/gitlab"
|
||||
- "./data/data:/var/opt/gitlab"
|
||||
shm_size: ${GITLAB_SHM_SIZE}
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:80/-/health || exit 1"]
|
||||
interval: 60s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 300s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -9,7 +9,12 @@ services:
|
||||
- "${GRAFANA_PORT_HTTP}:3000"
|
||||
volumes:
|
||||
- ./data:/var/lib/grafana
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:3000/api/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -11,3 +11,9 @@ services:
|
||||
- "/run/dbus:/run/dbus:ro"
|
||||
environment:
|
||||
- TZ=${HOME_ASSISTANT_TIME_ZONE}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8123 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
@@ -10,7 +10,12 @@ services:
|
||||
- ${KOISHI_PORT_HTTP}:5140
|
||||
volumes:
|
||||
- ./data:/koishi
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:5140 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -11,6 +11,12 @@ services:
|
||||
- OPENAI_PROXY_URL=${OPENAI_PROXY_URL}
|
||||
- ACCESS_CODE=${ACCESS_CODE}
|
||||
- OPENAI_MODEL_LIST=${OPENAI_MODEL_LIST}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:3210 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -10,7 +10,12 @@ services:
|
||||
- "${LSKY_PRO_PORT_HTTP}:8089"
|
||||
environment:
|
||||
- "WEB_PORT=8089"
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8089 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -21,7 +21,12 @@ services:
|
||||
- REDIS_PASSWORD=${MLIEV_DWZ_REDIS_ROOT_PASSWORD}
|
||||
- REDIS_DB=0
|
||||
- GIN_MODE=release
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8080 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -11,7 +11,12 @@ services:
|
||||
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD}
|
||||
volumes:
|
||||
- ./data:/var/opt/mssql/data
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "${MSSQL_SA_PASSWORD}", "-Q", "SELECT 1", "-C"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -22,9 +22,14 @@ services:
|
||||
- "${NACOS_PORT_HTTP}:8080"
|
||||
- "${NACOS_PORT_API_HTTP}:8848"
|
||||
- "${NACOS_PORT_COMMUNICATION}:9848"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8848/nacos/v1/console/health/readiness || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
networks:
|
||||
- acepanel-network
|
||||
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -13,6 +13,12 @@ services:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=${NEXTCLOUD_TIME_ZONE}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL https://localhost:443 -k || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -8,7 +8,12 @@ services:
|
||||
- ${NEZHA_PORT_HTTP}:8008
|
||||
volumes:
|
||||
- ./data:/dashboard/data
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8008 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -9,9 +9,14 @@ services:
|
||||
- ./html:/usr/share/nginx/html
|
||||
- ./conf.d:/etc/nginx/conf.d
|
||||
- ./certs:/etc/nginx/certs
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:80 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
networks:
|
||||
- acepanel-network
|
||||
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -9,6 +9,12 @@ services:
|
||||
tty: true
|
||||
volumes:
|
||||
- ./data:/root/.ollama
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:11434 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
@@ -13,6 +13,12 @@ services:
|
||||
- OPENLIST_ADMIN_PASSWORD=${OPENLIST_ADMIN_PASSWORD}
|
||||
- TZ=${OPENLIST_TIME_ZONE}
|
||||
- UMASK=022
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:5244 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -11,9 +11,14 @@ services:
|
||||
- ./lsws/admin-conf:/usr/local/lsws/admin/conf
|
||||
- ./sites:/var/www/vhosts
|
||||
- ./logs:/usr/local/lsws/logs
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:80 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -11,6 +11,12 @@ services:
|
||||
- ${PGADMIN_PORT}:80
|
||||
volumes:
|
||||
- ./data:/var/lib/pgadmin
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:80/misc/ping || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
networks:
|
||||
|
||||
@@ -7,6 +7,12 @@ services:
|
||||
environment:
|
||||
- HIDE_PHP_VERSION=true
|
||||
- PMA_ARBITRARY=1
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:80 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
networks:
|
||||
|
||||
@@ -9,12 +9,18 @@ services:
|
||||
volumes:
|
||||
- ./conf:/etc/prometheus/
|
||||
- ./prometheus:/prometheus
|
||||
command:
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
||||
- '--web.console.templates=/etc/prometheus/consoles'
|
||||
- '--storage.tsdb.retention.time=200h'
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:9090/-/healthy || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -7,6 +7,12 @@ services:
|
||||
- ./data:/ql/data
|
||||
ports:
|
||||
- "${QINGLONG_PORT_HTTP}:5700"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:5700 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
acepanel-network:
|
||||
|
||||
@@ -12,6 +12,12 @@ services:
|
||||
volumes:
|
||||
- ./data/:/var/lib/rabbitmq/
|
||||
- ./log/:/var/log/rabbitmq
|
||||
healthcheck:
|
||||
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
networks:
|
||||
- acepanel-network
|
||||
networks:
|
||||
|
||||
@@ -11,6 +11,12 @@ services:
|
||||
- ./data:/data
|
||||
- ./conf/redis.conf:/etc/redis/redis.conf
|
||||
- ./logs:/logs
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
@@ -8,6 +8,12 @@ services:
|
||||
volumes:
|
||||
- ./data/namesrv/logs:/home/rocketmq/logs
|
||||
command: sh mqnamesrv
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 9876 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
broker:
|
||||
image: apache/rocketmq:5.4.0
|
||||
links:
|
||||
@@ -25,6 +31,12 @@ services:
|
||||
- ./data/broker/store:/home/rocketmq/store
|
||||
- ./data/broker/conf/broker.conf:/opt/rocketmq-5.2.0/conf/broker.conf
|
||||
command: sh mqbroker -c /opt/rocketmq-5.2.0/conf/broker.conf
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 10911 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
proxy:
|
||||
image: apache/rocketmq:5.4.0
|
||||
links:
|
||||
@@ -44,6 +56,12 @@ services:
|
||||
- ./data/proxy/logs:/home/rocketmq/logs
|
||||
- ./data/proxy/conf/rmq-proxy.json:/opt/rocketmq-5.2.0/conf/rmq-proxy.json
|
||||
command: sh mqproxy -pc /opt/rocketmq-5.2.0/conf/rmq-proxy.json
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 8080 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
dashboard:
|
||||
image: apacherocketmq/rocketmq-dashboard:2.1.0
|
||||
links:
|
||||
@@ -57,6 +75,12 @@ services:
|
||||
restart: on-failure
|
||||
environment:
|
||||
- JAVA_OPTS=-Drocketmq.namesrv.addr=namesrv:9876
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8082 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
@@ -16,6 +16,12 @@ services:
|
||||
environment:
|
||||
- "RELAY=${HOST_ADDRESS}:${RUSTDESK_PORT_HBBR}"
|
||||
- "ENCRYPTED_ONLY=1"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 21116 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -11,6 +11,12 @@ services:
|
||||
RUSTFS_CONSOLE_ENABLE: ${RUSTFS_CONSOLE_ENABLE}
|
||||
volumes:
|
||||
- ./data:/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:9001 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
networks:
|
||||
|
||||
@@ -10,6 +10,12 @@ services:
|
||||
# - "./tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml"
|
||||
entrypoint: |
|
||||
bash -c 'cp -a webapps.dist/manager webapps/; exec catalina.sh run'
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8080 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
networks:
|
||||
|
||||
@@ -8,6 +8,12 @@ services:
|
||||
DATABASE_TYPE: ${UMAMI_DB_TYPE}
|
||||
DATABASE_URL: ${UMAMI_DB_TYPE}://${UMAMI_DB_USER}:${UMAMI_DB_USER_PASSWORD}@${UMAMI_DB_HOST}:${UMAMI_DB_PORT}/${UMAMI_DB_NAME}
|
||||
APP_SECRET: ${HASH_SALT}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:3000 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- acepanel-network
|
||||
networks:
|
||||
|
||||
@@ -8,6 +8,12 @@ services:
|
||||
- ./data:/app/data
|
||||
ports:
|
||||
- ${UPTIME_KUMA_PORT_HTTP}:3001
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:3001 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
@@ -8,6 +8,12 @@ services:
|
||||
- "${VAULTWARDEN_PORT_HTTP}:80"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:80 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
|
||||
@@ -20,6 +20,12 @@ services:
|
||||
- NET_ADMIN
|
||||
volumes:
|
||||
- ./data:/storage
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsSL http://localhost:8006 || exit 1"]
|
||||
interval: 60s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 300s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- acepanel-network
|
||||
|
||||
Reference in New Issue
Block a user