Docker compose fix

This commit is contained in:
Oleg Lavrovsky 2017-04-24 14:56:57 +02:00
parent 380481706e
commit a39a0f61e9
5 changed files with 6 additions and 8 deletions

View file

@ -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:

View file

@ -1,4 +1,4 @@
--- ---
- name: Start Docker site - name: Start Docker site
shell: docker-compose up shell: docker-compose up -d

View file

@ -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:

View file

@ -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