Can we write compose file in json file instead of yaml?
0
Yes. Yaml format is a superset JSON format. There fore any JSON file is also a valid Yamlfile.
If we use a JSON file then we have to specify in docker command that weare using a JSON file as follows:
%docker-compose-f docker-compose.json up
Sign in to add a comment
0 Answers
0
📝 No answers yet!
Be the first to answer this interview question.
Your Answer
Sign in to post your answer and help the community.