Question - Can JSON be used instead of YAML for the compose file in Docker? If yes, how?
Answer -
Yes, JSON can be used instead of YAML for the Docker compose file. To use the JSON file with composing, the filename should be specified as the following:
“docker-compose -f docker-compose.json up.”