Ansible and docker compose

+1 vote
Hi, How do we run multiple docker compose files from ansible playbook?
Nov 2, 2019 in DevOps & Agile by saraswathi
• 130 points
2,895 views

1 answer to this question.

+1 vote

Are all your docker-compose files in the same folder?

If they are in the same folder, say my_project, you can use something like this:

- name: run the service defined in my_project's docker-compose.yml
  docker_compose:
    project_src: /path/to/my_project
answered Nov 14, 2019 by Eric

Related Questions In DevOps & Agile

0 votes
1 answer

Is there any difference between jenkins ssh publishers and ansible?

In a Layman’s language they're the same ...READ MORE

answered Apr 9, 2018 in DevOps & Agile by shubham
• 7,340 points
1,253 views
0 votes
1 answer

How can a script identify the difference between Docker Toolbox and Docker for Windows?

Now, the Toolbox works through docker-machine. The way ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
821 views
+2 votes
1 answer

What is the difference between a container and an image in Docker?

 Below is reference which you can follow to know ...READ MORE

answered Sep 20, 2018 in DevOps & Agile by shubham
• 7,340 points
1,205 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+3 votes
4 answers

Unable to build docker image

It looks like the dev dependencies were ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,220 points

edited Oct 17, 2018 by lina 5,811 views
0 votes
1 answer

Remove old and unused Docker images

Here is what you can try. docker system ...READ MORE

answered Oct 27, 2018 in DevOps & Agile by shubham
• 7,340 points
1,762 views
0 votes
1 answer

How do I restart a single container with docker-compose?

Actually it's not that difficult. Here is ...READ MORE

answered Nov 8, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
7,497 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP