Docker compose fix
This commit is contained in:
parent
380481706e
commit
a39a0f61e9
5 changed files with 6 additions and 8 deletions
|
@ -7,6 +7,7 @@
|
||||||
git:
|
git:
|
||||||
repo: 'https://github.com/datalets/public-health-ch'
|
repo: 'https://github.com/datalets/public-health-ch'
|
||||||
dest: "{{ release_dir }}"
|
dest: "{{ release_dir }}"
|
||||||
|
force: yes
|
||||||
|
|
||||||
- name: Copy Docker site configuration
|
- name: Copy Docker site configuration
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Start Docker site
|
- name: Start Docker site
|
||||||
shell: docker-compose up
|
shell: docker-compose up -d
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Test and reload Nginx
|
|
||||||
service: name=nginx state=reloaded
|
|
||||||
|
|
||||||
# Note that changing the domain leaves the old config in place
|
# Note that changing the domain leaves the old config in place
|
||||||
- name: Copy Nginx site config
|
- name: Copy Nginx site config
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
django_log_dir: /var/log/publichealth
|
django_log_dir: /var/log/publichealth
|
||||||
ipv4_addresses: "{{ ansible_all_ipv4_addresses }}"
|
ipv4_addresses: "{{ ansible_all_ipv4_addresses }}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_FILE: "./docker-compose.yml"
|
COMPOSE_FILE: "{{ release_dir }}/docker-compose.yml"
|
||||||
COMPOSE_PROJECT_NAME: publichealth
|
COMPOSE_PROJECT_NAME: publichealth
|
||||||
roles:
|
roles:
|
||||||
- web
|
- web
|
||||||
|
|
Loading…
Reference in a new issue