Skip to content

Include files marked as Invalid type. Expected "include" #462

@BenjaminNolan

Description

@BenjaminNolan

What is the problem you're trying to solve
I have a compose.yml file which includes other ./path/to/compose.yml files relative to itself. These includes work correctly with docker compose, however they are flagged with the error Invalid type. Expected "include" by yaml-schema using the compose-spec.json file located within this repo's main branch as accessed via https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json.

Describe the solution you'd like
compose-spec.json needs to be updated to specify the correct format for include:.

Additional context
example compose.yml:

version: "3"

include:
  - "./docker/pgadmin/compose.yml"
  - "./docker/portainer/compose.yml"
  - "./docker/postgres/compose.yml"
  - "./docker/zipkin/compose.yml"

services:
  backend:
    container_name: backend
    image: ghcr.io/path/to/backend:latest
    depends_on:
      - postgres
    volumes:
      - ./backend:/app

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions