Add an Ansible playbook to deploy to the server
This commit is contained in:
parent
5d3eb4aca9
commit
8a53025fd7
3 changed files with 17 additions and 0 deletions
10
tools/deployment/deploy.yml
Normal file
10
tools/deployment/deploy.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- hosts: web
|
||||
|
||||
tasks:
|
||||
- name: Pull the latest images and restart the services
|
||||
shell: |
|
||||
docker-compose --file docker-compose-production.yaml pull
|
||||
docker-compose --file docker-compose-production.yaml up --detach
|
||||
args:
|
||||
chdir: oliverdavies.uk
|
||||
Loading…
Add table
Add a link
Reference in a new issue