style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -4,7 +4,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
x-valkey-node: &valkey-node
<<: *defaults
@@ -14,13 +14,13 @@ x-valkey-node: &valkey-node
command:
- valkey-server
- --cluster-enabled
- "yes"
- yes
- --cluster-config-file
- nodes.conf
- --cluster-node-timeout
- "5000"
- '5000'
- --appendonly
- "yes"
- yes
- --requirepass
- ${VALKEY_PASSWORD:-passw0rd}
- --masterauth
@@ -34,7 +34,7 @@ x-valkey-node: &valkey-node
cpus: ${VALKEY_CLUSTER_CPU_RESERVATION:-0.25}
memory: ${VALKEY_CLUSTER_MEMORY_RESERVATION:-256M}
healthcheck:
test: ["CMD", "valkey-cli", "-a", "${VALKEY_PASSWORD:-passw0rd}", "ping"]
test: [CMD, valkey-cli, -a, '${VALKEY_PASSWORD:-passw0rd}', ping]
interval: 10s
timeout: 3s
retries: 3
@@ -44,48 +44,48 @@ services:
valkey-node-1:
<<: *valkey-node
ports:
- "${VALKEY_PORT_1:-7001}:6379"
- "${VALKEY_BUS_PORT_1:-17001}:16379"
- '${VALKEY_PORT_1:-7001}:6379'
- '${VALKEY_BUS_PORT_1:-17001}:16379'
volumes:
- valkey_data_1:/data
valkey-node-2:
<<: *valkey-node
ports:
- "${VALKEY_PORT_2:-7002}:6379"
- "${VALKEY_BUS_PORT_2:-17002}:16379"
- '${VALKEY_PORT_2:-7002}:6379'
- '${VALKEY_BUS_PORT_2:-17002}:16379'
volumes:
- valkey_data_2:/data
valkey-node-3:
<<: *valkey-node
ports:
- "${VALKEY_PORT_3:-7003}:6379"
- "${VALKEY_BUS_PORT_3:-17003}:16379"
- '${VALKEY_PORT_3:-7003}:6379'
- '${VALKEY_BUS_PORT_3:-17003}:16379'
volumes:
- valkey_data_3:/data
valkey-node-4:
<<: *valkey-node
ports:
- "${VALKEY_PORT_4:-7004}:6379"
- "${VALKEY_BUS_PORT_4:-17004}:16379"
- '${VALKEY_PORT_4:-7004}:6379'
- '${VALKEY_BUS_PORT_4:-17004}:16379'
volumes:
- valkey_data_4:/data
valkey-node-5:
<<: *valkey-node
ports:
- "${VALKEY_PORT_5:-7005}:6379"
- "${VALKEY_BUS_PORT_5:-17005}:16379"
- '${VALKEY_PORT_5:-7005}:6379'
- '${VALKEY_BUS_PORT_5:-17005}:16379'
volumes:
- valkey_data_5:/data
valkey-node-6:
<<: *valkey-node
ports:
- "${VALKEY_PORT_6:-7006}:6379"
- "${VALKEY_BUS_PORT_6:-17006}:16379"
- '${VALKEY_PORT_6:-7006}:6379'
- '${VALKEY_BUS_PORT_6:-17006}:16379'
volumes:
- valkey_data_6:/data
@@ -121,7 +121,7 @@ services:
valkey-node-6:6379 \
--cluster-replicas 1 \
--cluster-yes
restart: "no"
restart: no
deploy:
resources:
limits: