Ansible and docker compose

+1 vote
Hi, How do we run multiple docker compose files from ansible playbook?
Nov 1 in DevOps & Agile by saraswathi
• 130 points
48 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 3 days ago 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
• 6,890 points
190 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,280 points
66 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
• 6,890 points
65 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,110 points

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

Remove old and unused Docker images

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

answered Oct 26, 2018 in DevOps & Agile by shubham
• 6,890 points
85 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,510 points
983 views