📜  带有 docker-compose 的 docker redis 示例 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:57.191000             🧑  作者: Mango

代码示例1
version: '3.8'
services:
  cache:
    image: redis:6.2-alpine
    restart: always
    ports:
      - '6379:6379'
    command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
    volumes: 
      - cache:/data
volumes:
  cache:
    driver: local