version: "3.8" services: redis: image: redis:7.2 container_name: local-redis restart: unless-stopped ports: - "127.0.0.1:6379:6379" command: > redis-server --appendonly no --timeout 10 --tcp-keepalive 300