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:
|
||||
repo: 'https://github.com/datalets/public-health-ch'
|
||||
dest: "{{ release_dir }}"
|
||||
force: yes
|
||||
|
||||
- name: Copy Docker site configuration
|
||||
template:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
|
||||
- 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
|
||||
- name: Copy Nginx site config
|
||||
template:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue