update
This commit is contained in:
22
redis/Demo/SingleNode/docker-compose.yml
Normal file
22
redis/Demo/SingleNode/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: harbor.colben.cn/general/redis
|
||||
container_name: redis
|
||||
restart: "on-failure"
|
||||
stop_grace_period: 1m
|
||||
privileged: true
|
||||
environment:
|
||||
_CONF_maxmemory: 1GB
|
||||
_CONF_port: 6379
|
||||
ports:
|
||||
- 6379:6379
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./redis/data
|
||||
target: /var/lib/redis
|
||||
- type: bind
|
||||
source: ./redis/log
|
||||
target: /var/log/redis
|
||||
|
Reference in New Issue
Block a user