in Technology by
Can we use JSON instead of YAML while developing docker-compose file in Docker?

1 Answer

0 votes
by
Yes! It can be used. In order to run docker-compose with JSON, docker-compose -f docker-compose.json up can be used.

Related questions

0 votes
    How to check that a container 1 runs before container 2 while using docker compose?...
asked Jun 21, 2021 in Technology by JackTerrance
0 votes
    What is a YAML file and how do we use it in Ansible?...
asked Jul 28, 2021 in Technology by JackTerrance
0 votes
    Can We use comments inside a JSON file? If so, how?...
asked Jan 11, 2021 in Technology by JackTerrance
0 votes
    So, I wanted to run the local Swagger UI with respect to Local Json. And for that I am following ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    Which method to use while working with XML fragments, instead of XML()? (a) XMLInterface() (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What are the purposes of up, run, and start commands of docker compose?...
asked Jun 20, 2021 in Technology by JackTerrance
0 votes
0 votes
    Now that links are deprecated in docker-compose.yml (and were able to use the new networking feature to ... docker-compose.yml? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have a dump.sql file that I would like to load with docker-compose. docker-compose.yml: services: postgres: ... how to do this? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have a dump.sql file that I would like to load with docker-compose. docker-compose.yml: services: postgres: ... how to do this? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I'm looking for a way to configure Nginx to access hosted services through a subdomain of my server. Those services ... me with this? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    My docker-compose file has some running docker files to create my containers. I don't want the docker files ... docker-compose syntax? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    How can we write JSON data to a file?...
asked Jan 11, 2021 in Technology by JackTerrance
0 votes
    Which of the following is correct? A.We can use json data directly in axios B.we can use json data directly ... only we can use axios Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
...