Skip to content

Instantly share code, notes, and snippets.

@mickeyn
Created October 22, 2024 05:41
Show Gist options
  • Save mickeyn/9e2a6aa46dde285c98ea1337b8ebaf7f to your computer and use it in GitHub Desktop.
Save mickeyn/9e2a6aa46dde285c98ea1337b8ebaf7f to your computer and use it in GitHub Desktop.
docker-compose error
>> git reset --hard 963f35260bb21c347064984f19f566441d0386ca
HEAD is now at 963f352 include web docker-compose file
>> fig down
ERROR: The Compose file './docker-compose.yml' is invalid because:
'include' does not match any of the regexes: '^x-'
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment