{% include 'roles/sys-svc-compose/templates/base.yml.j2' %} {% set service_name = 'pixelfed' %} {{ service_name }}: {{ lookup('container_image', application_id, 'pixelfed') }} {{ lookup('compose_only', 'container_name', PIXELFED_CONTAINER) }} {% include 'roles/sys-svc-container/templates/base.yml.j2' %} entrypoint: "{{ PIXELFED_ENTRYPOINT_DOCKER }}" {{ lookup('container_extra_hosts', host_alias=true) | indent(4) }} {{ lookup('container_volumes', service_name) | indent(4) }} {{ lookup('container_ports', ['pixelfed', 'http', DOCKER_BIND_HOST]) | indent(4) }} {{ lookup('container_depends_on', application_id) | indent(4) }} {{ lookup('container_networks') | indent(4) }} {% set service_name = 'worker' %} {{ service_name }}: {{ lookup('compose_only', 'container_name', PIXELFED_WORKER_CONTAINER) }} {{ lookup('container_image', application_id, 'pixelfed') }} {% include 'roles/sys-svc-container/templates/base.yml.j2' %} environment: AUTORUN_LARAVEL_EVENT_CACHE: "false" AUTORUN_LARAVEL_ROUTE_CACHE: "false" AUTORUN_LARAVEL_VIEW_CACHE: "false" AUTORUN_ENABLED: "false" {{ lookup('container_volumes', service_name) | indent(4) }} entrypoint: "{{ PIXELFED_WORKER_ENTRYPOINT_DOCKER }}" {{ lookup('container_extra_hosts', host_alias=true) | indent(4) }} {{ lookup('container_healthcheck', service_name) | indent(4) }} {{ lookup('container_depends_on', application_id, extra={ 'pixelfed': {'condition': 'service_started'}, }) | indent(4) }} {{ lookup('container_networks') | indent(4) }} {{ lookup('compose_volumes') }} {{ lookup('compose_networks') }}