Browse Source

mysql low memory and health check

main
有安科技 4 months ago
parent
commit
a4ca91fc9d
  1. 9
      docker/docker-compose.yml
  2. BIN
      docs/waf.tgz

9
docker/docker-compose.yml

@ -36,7 +36,8 @@ services:
links: links:
- wafdb - wafdb
depends_on: depends_on:
- wafdb wafdb:
condition: service_healthy
wafdb: wafdb:
image: percona/percona-server:5.7 image: percona/percona-server:5.7
@ -53,6 +54,12 @@ services:
- INIT_ROCKSDB - INIT_ROCKSDB
- MYSQL_MAX_CONNECTIONS=512 - MYSQL_MAX_CONNECTIONS=512
- MYSQL_ROOT_PASSWORD=Safe3.WAF - MYSQL_ROOT_PASSWORD=Safe3.WAF
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
start_period: 0s
interval: 5s
timeout: 3s
retries: 3
volumes: volumes:
wafshared: wafshared:

BIN
docs/waf.tgz

Binary file not shown.
Loading…
Cancel
Save