Skip to content

Commit

Permalink
Add health and availability services in configs
Browse files Browse the repository at this point in the history
  • Loading branch information
akscram committed Dec 6, 2016
1 parent 89c8e43 commit 0f8dc2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/ceagle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ service:
command: "true"
type: "exec"
daemon:
dependencies:
- availability-api
- health-api
command: gunicorn
--name ceagle
--workers {{ ceagle.wsgi.workers }}
Expand Down
4 changes: 4 additions & 0 deletions service/files/ceagle.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"PORT": {{ ceagle.port.cont }},
"HOST": "0.0.0.0",
"DEBUG": {% if ceagle.debug %}true{% else %}false{% endif %}
},
"services": {
"availability": "http://{{ address("availability-api", port=availability.port) }}",
"health": "http://{{ address("health-api", port=health.port) }}"
}
}

0 comments on commit 0f8dc2c

Please sign in to comment.