Docker Component配備Redis
451 ワード
docker-compose.yml構成
redis.conf構成
version: '3'
services:
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
- ./redis.conf:/etc/redis/redis.conf:rw
- ./redis-data/:/data:rw
command:
#
redis-server /etc/redis/redis.conf --appendonly yes
redis.conf構成
requirepass 123456
appendonly yes
daemonize no