# Redis 缓存服务（会话/缓存/限流/分布式锁）
services:
  redis:
    image: redis:7
    container_name: opc-redis
    restart: always
    command: ["redis-server", "--requirepass", "redis_pass"]
    ports:
      - "127.0.0.1:6379:6379"
    volumes:
      - ../../serverdata/redis-data:/data
    networks:
      - opc-network

networks:
  opc-network:
    name: opc-network
    external: true
