报错(root) Additional property redis is not allowed

在做docker-compose时
报错

(root) Additional property redis is not allowed
一定要检查.yuml文件
我的就是yuml文件没对齐

version: "3.9"
services:
  web:
    build: .
    ports:
      - "8000:5000"
  redis:
    image: "redis:alpine"

对齐就好了

你可能感兴趣的:(centos7,linux,java,开发语言)