version: '3'

services: 
  redis:
    image: redis:3
    container_name: "redis3"
    restart: always
    ports:
      - 6379:6379
    volumes: 
      - ./data:/data
    networks:
      - "redisnet"
    # command: redis-server --appendonly yes

networks: 
  redisnet: 
    driver: bridge