JSON File in Docker

Hello Everyone, Can anyone tell me JSON be used instead of YAML for the compose file in Docker? If yes, how? Actually, I am preparing for a docker interview. So can anyone also know which type of questions is most important for freshers?

@ankitdixit Welcome to the forum :partying_face:

Yes. Yaml is a superset of json so any JSON file should be valid Yaml. To use a JSON file with Compose, specify the filename to use, for example:

$ docker-compose -f docker-compose.json up

Are you using camunda-docker?

This forum is to discuss about Camunda Platform and practices. Maybe you can post the docker specific queries in stackoverflow or docker forums :slight_smile:

1 Like