From 080b8a369ec068a4dfe8b96ab422dc77de1f0ae5 Mon Sep 17 00:00:00 2001 From: Daniel Helgenberger Date: Wed, 5 May 2021 12:24:22 +0200 Subject: [PATCH] Prefer 'compose.yaml' as per compose spec https://github.com/compose-spec/compose-spec/blob/master/spec.md#compose-file --- podman_compose.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index f6d8ed5..0233d00 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -837,6 +837,10 @@ class PodmanCompose: cmd = args.command if not args.file: args.file = list(filter(os.path.exists, [ + "compose.yaml", + "compose.yml", + "compose.override.yaml", + "compose.override.yml", "docker-compose.yml", "docker-compose.yaml", "docker-compose.override.yml", @@ -848,7 +852,7 @@ class PodmanCompose: ])) files = args.file if not files: - print("no docker-compose.yml or container-compose.yml file found, pass files with -f") + print("no compose.yaml, docker-compose.yml ot container-compose.yml file found, pass files with -f") exit(-1) ex = map(os.path.exists, files) missing = [ fn0 for ex0, fn0 in zip(ex, files) if not ex0 ]