version : "3"
services:
  redis-dyn:
    image: redis:3
    volumes:
      - "redis-vol:/data"
    deploy:
      replicas: 1
  openresty-dyn:
    image: router
    ports:
      - "8666:80"
      - "8888:8888"
volumes:
  redis-vol:

version : "3"
services:
  redis-dyn:
    image: redis:4
    volumes:
      - "redis-vol:/data"
    deploy:
      replicas: 1
  openresty-dyn:
    image: router
    ports:
      - "8666:80"
      - "8888:8888"
volumes:
  redis-vol:

Upgrade to use redis 4
Upgrade to use redis 4
