mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
26 lines
1.2 KiB
Django/Jinja
26 lines
1.2 KiB
Django/Jinja
{% include 'roles/sys-svc-compose/templates/base.yml.j2' %}
|
|
{% set service_name = FRIENDICA_SERVICE %}
|
|
{{ service_name }}:
|
|
{{ lookup('container_image', application_id, 'friendica') }}
|
|
{{ lookup('compose_only', 'container_name', FRIENDICA_CONTAINER) }}
|
|
{{ lookup('template', 'roles/sys-svc-container/templates/build.yml.j2') | indent(4) }}
|
|
args:
|
|
FRIENDICA_IMAGE: "{{ FRIENDICA_IMAGE }}"
|
|
FRIENDICA_VERSION: "{{ FRIENDICA_VERSION }}"
|
|
environment:
|
|
FRIENDICA_CONFIG_FILE: "{{ FRIENDICA_CONFIG_FILE }}"
|
|
{% if DEPLOYMENT_MODE == 'swarm' %}
|
|
TASK_SLOT: "{% raw %}{{.Task.Slot}}{% endraw %}"
|
|
{% endif %}
|
|
{% include 'roles/sys-svc-container/templates/base.yml.j2' %}
|
|
{{ lookup('container_volumes', service_name) | indent(4) }}
|
|
{{ lookup('container_ports', ['friendica', 'http', DOCKER_BIND_HOST]) | indent(4) }}
|
|
|
|
{{ lookup('container_healthcheck', service_name) | indent(4) }}
|
|
{{ lookup('container_extra_hosts') | indent(4) }}
|
|
{{ lookup('container_networks') | indent(4) }}
|
|
{{ lookup('container_depends_on', application_id) | indent(4) }}
|
|
|
|
{{ lookup('compose_volumes') }}
|
|
{{ lookup('compose_networks') }}
|