-
Notifications
You must be signed in to change notification settings - Fork 779
Include files marked as Invalid type. Expected "include" #462
Copy link
Copy link
Closed
Description
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:/appReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

