Merge pull request #20 from coredotbin/healthcheck
Add support for healthcheck
This commit is contained in:
commit
7a6f56ab32
@ -63,6 +63,9 @@ containers:
|
|||||||
mem_limit: 512m
|
mem_limit: 512m
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ appdata_path }}/unifi:{{ container_config_path }}"
|
- "{{ appdata_path }}/unifi:{{ container_config_path }}"
|
||||||
|
depends_on:
|
||||||
|
- service: mongodb
|
||||||
|
condition: service_started
|
||||||
include_global_env_vars: true
|
include_global_env_vars: true
|
||||||
restart: "{{ unless_stopped }}"
|
restart: "{{ unless_stopped }}"
|
||||||
- service_name: quassel
|
- service_name: quassel
|
||||||
|
@ -80,7 +80,12 @@ services:
|
|||||||
{% if container.depends_on is defined %}
|
{% if container.depends_on is defined %}
|
||||||
depends_on:
|
depends_on:
|
||||||
{% for dependent in container.depends_on %}
|
{% for dependent in container.depends_on %}
|
||||||
|
{% if dependent is mapping %}
|
||||||
|
{{ dependent.service}}:
|
||||||
|
condition: {{ dependent.condition }}
|
||||||
|
{% else %}
|
||||||
- {{ dependent }}
|
- {{ dependent }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.hostname is defined %}
|
{% if container.hostname is defined %}
|
||||||
@ -160,8 +165,19 @@ services:
|
|||||||
- {{ envfile }}
|
- {{ envfile }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.user is defined %}
|
{% if container.healthcheck is defined %}
|
||||||
user: {{ container.user }}
|
healthcheck:
|
||||||
|
test: "{{ container.healthcheck.test }}"
|
||||||
|
{% if container.healthcheck.interval is defined %}
|
||||||
|
interval: {{ container.healthcheck.interval }}
|
||||||
|
{% endif %}
|
||||||
|
{% if container.healthcheck.timeout is defined %}
|
||||||
|
timeout: {{ container.healthcheck.timeout }}
|
||||||
|
{% endif %}
|
||||||
|
{% if container.healthcheck.retries is defined %}
|
||||||
|
retries: {{ container.healthcheck.retries }}
|
||||||
|
{% endif %}
|
||||||
|
start_period: {{ container.healthcheck.start_period }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.restart is defined %}
|
{% if container.restart is defined %}
|
||||||
restart: {{ container.restart }}
|
restart: {{ container.restart }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user