创建docker-compose.yml文件 version: "2" services: redis: image: redis hostname: redis container_name: redis restart: always ports: