version: "3.8" services: redis: image: redis:6-alpine command: --save 900 1 ports: - "6379:6379" volumes: - ./data:/data restart: unless-stopped