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:
repo: 'https://github.com/datalets/public-health-ch'
dest: "{{ release_dir }}"
force: yes
- name: Copy Docker site configuration
template:

View File

@ -1,4 +1,4 @@
---
- 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
- name: Copy Nginx site config
template:

View File

@ -25,12 +25,12 @@ web:
redis:
image: redis
ports:
- "6379:6379"
- "6379:6379"
postgres:
image: postgres
ports:
- "5432:5432"
- "5432:5432"
elasticsearch:
image: orchardup/elasticsearch
ports:
- "9200:9200"
- "9200:9200"

View File

@ -6,7 +6,7 @@
django_log_dir: /var/log/publichealth
ipv4_addresses: "{{ ansible_all_ipv4_addresses }}"
environment:
COMPOSE_FILE: "./docker-compose.yml"
COMPOSE_FILE: "{{ release_dir }}/docker-compose.yml"
COMPOSE_PROJECT_NAME: publichealth
roles:
- web