1.

Can I Use Json Instead Of Yaml For My Compose File?

Answer»

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

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



Discussion

No Comment Found