I tried to add a healthcheck to my compose file but whenever I ran the compose file I get the following error.
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for balrogadmin: 'healthcheck'
Unsupported config option for balrogagent: 'healthcheck'
Unsupported config option for balrogpub: 'healthcheck'
Unsupported config option for balrogui: 'healthcheck'
My docker configurations are:
docker --version
Docker version 17.03.0-ce, build 3a232c8
docker-compose --version
docker-compose version 1.11.2, build dfed245
The healthcheck option was added in docker-compose file format 2.1. If you are using version 2 or version 1, it will not be available. The format version is typically on the first line of docker-compose.yml, as in
version: '2.1'
version: '3'
Also, the healthcheck option requires Docker Engine 1.12.0 or later.
If you don't meet those requirements, it will not work.
delete the config option for balrogadmin: 'healthcheck',it will can work.