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

48
src/valkey/README.md Normal file
View File

@@ -0,0 +1,48 @@
# Valkey
[English](./README.md) | [中文](./README.zh.md)
This service deploys Valkey, an open-source alternative to Redis that began as a fork of Redis 7.2.
## Services
- `valkey`: The Valkey service.
## Environment Variables
| Variable Name | Description | Default Value |
| -------------------- | --------------------------------------------------------- | ------------- |
| VALKEY_VERSION | Valkey image version | `8.0-alpine` |
| VALKEY_PASSWORD | Password for authentication | `passw0rd` |
| VALKEY_PORT_OVERRIDE | Host port mapping (maps to Valkey port 6379 in container) | `6379` |
Please modify the `.env` file as needed for your use case.
## Volumes
- `valkey_data`: A volume for storing Valkey data with AOF (Append Only File) persistence enabled.
- `valkey.conf`: Optional custom configuration file (mount to `/etc/valkey/valkey.conf`).
## Features
Valkey is fully compatible with Redis and provides:
- In-memory data structure store
- Support for strings, hashes, lists, sets, sorted sets
- Pub/Sub messaging
- Transactions
- Persistence (RDB snapshots and AOF)
- Replication
- Lua scripting
- LRU eviction
## Notes
- AOF persistence is enabled by default for better data durability.
- For production use, consider using a custom configuration file.
- Valkey is 100% compatible with Redis clients and commands.
- This is an open-source alternative maintained by the Linux Foundation.
## License
Valkey is licensed under the BSD 3-Clause License.