mirror of
https://gitea.bearcatlog.com/Bryant/chassis-agent
synced 2025-01-19 02:10:39 +08:00
feat: 添加 redis
This commit is contained in:
parent
55169f69bc
commit
9f2bf9e059
23
docker-compose-redis.yml
Normal file
23
docker-compose-redis.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
redis:
|
||||||
|
image: redis:7.2.3
|
||||||
|
hostname: redis
|
||||||
|
container_name: redis
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- '6379:6379'
|
||||||
|
command: redis-server --save 20 1 --loglevel warning --requirepass redis6379
|
||||||
|
volumes:
|
||||||
|
- redis_data:/data
|
||||||
|
networks:
|
||||||
|
redis_network:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
redis_network:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
redis_data:
|
||||||
|
driver: local
|
Loading…
Reference in New Issue
Block a user