在项目名目录下创建docker-compose.yaml文件 ... 容器和物理host共享数据卷 redis: # redis服务 image: redis:3.0.7 # 映像名# volumes 路径设置 volumes: # 只需指定 ...