Add redis sample

pull/142/head
Baohua Yang 2022-01-18 16:39:56 -08:00
parent 2f7547ee92
commit 0dd8066c97
2 changed files with 2073 additions and 0 deletions

View File

@ -0,0 +1,20 @@
version: '3'
services:
redis-server:
image: redis:6.2
restart: "always"
container_name: redis-server
ports:
- "6379:6379"
volumes:
- ./redis.conf:/etc/redis/redis.conf
- ./data:/data
command: redis-server /etc/redis/redis.conf
privileged: true
redis-cli:
image: redis:6.2
restart: "always"
container_name: redis-cli
command: bash -c 'redis-cli -h redis-server -p 6379 ping; while true; do sleep 20220101; done'
privileged: true

2053
redis/redis.conf 100644

File diff suppressed because it is too large Load Diff