Skip to content

Commit

Permalink
docker-compose now fully working - stopping and removing old services…
Browse files Browse the repository at this point in the history
… (if there), (re-)building all services and starting them, ready to scale :)
  • Loading branch information
jonashackt committed Mar 26, 2017
1 parent b98ded3 commit f04a58c
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@
src: "templates/docker-compose.j2"
dest: "{{base_path}}\\docker-compose.yml"

# Run docker-compose
- name: Stop all Service Docker containers (if there)
win_shell: docker-compose stop
args:
chdir: "{{base_path}}"
ignore_errors: yes

- name: Remove all Service Docker containers (if there)
win_shell: docker-compose rm -f
args:
chdir: "{{base_path}}"
ignore_errors: yes

- name: (Re-)Build all Service Docker images
win_shell: docker-compose build
args:
chdir: "{{base_path}}"
ignore_errors: yes

- name: Run all Services Docker containers
win_shell: docker-compose up -d
args:
chdir: "{{base_path}}"
ignore_errors: yes

# Do Healthchecks

0 comments on commit f04a58c

Please sign in to comment.