docker 部署 redis
- docker-compose.yml
version: '3.7' services: redis: image: redis:alpine restart: always ports: - "6379:6379" environment: TZ: "Asia/Shanghai" volumes: - redis_data:/data volumes: redis_data:
dockerpublic:docker:app:redis
version: '3.7' services: redis: image: redis:alpine restart: always ports: - "6379:6379" environment: TZ: "Asia/Shanghai" volumes: - redis_data:/data volumes: redis_data: