Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create "blank" yaml-file for Docker-compose

My directory structure contains multiple docker-compose.yaml files, each on it's own directory. All of them are running with one bash-script.

If there is some directories (and configuration), which I do not want to run, how to create "empty" docker-compose.yaml-file to run? Empty file is not accepted

ERROR: Top level object in './docker-compose.yaml' needs to be an object not '<class 'NoneType'>'.
like image 202
ajlind Avatar asked Sep 07 '25 19:09

ajlind


1 Answers

You can add a version number:

version: "3"
like image 136
WackGet Avatar answered Sep 10 '25 04:09

WackGet