Template using syntax docker-compose v2 "depends_on", but docker-compose version: '3.7'
Created by: yevhen-kalyna
Issue:
$ docker-compose -f deploy/docker-compose.yml --project-directory . build
ERROR: The Compose file './deploy/docker-compose.yml' is invalid because:
services.api.depends_on contains an invalid type, it should be an array
services.migrator.depends_on contains an invalid type, it should be an array
In docker-compose file:
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
Should be:
depends_on:
- db
- redis
Reference: https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on