feat: update Guidelines

This commit is contained in:
Sun-ZhenXing
2025-10-15 14:00:03 +08:00
parent fe329c80eb
commit 8cf227bd14
76 changed files with 1078 additions and 671 deletions

View File

@@ -1,26 +1,23 @@
x-default: &default
restart: unless-stopped
volumes:
- &localtime /etc/localtime:/etc/localtime:ro
- &timezone /etc/timezone:/etc/timezone:ro
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
valkey:
<<: *default
image: valkey/valkey:${VALKEY_VERSION:-8.0-alpine}
container_name: valkey
ports:
- "${VALKEY_PORT_OVERRIDE:-6379}:6379"
volumes:
- *localtime
- *timezone
- valkey_data:/data
# Use a custom valkey.conf file
# - ./valkey.conf:/etc/valkey/valkey.conf
environment:
- TZ=${TZ:-UTC}
command:
- sh
- -c
@@ -38,6 +35,12 @@ services:
reservations:
cpus: '0.25'
memory: 256M
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
volumes:
valkey_data: