feat: add more

This commit is contained in:
Sun-ZhenXing
2025-10-06 21:48:39 +08:00
parent f330e00fa0
commit 3c609b5989
120 changed files with 7698 additions and 59 deletions

View File

@@ -0,0 +1,43 @@
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
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
command:
- sh
- -c
- |
if [ -n "$${VALKEY_PASSWORD}" ]; then
valkey-server --requirepass "$${VALKEY_PASSWORD}" --appendonly yes
else
valkey-server --appendonly yes
fi
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
volumes:
valkey_data: