2021-04-14 08:54:49 -04:00
|
|
|
# This is a configuration template for a single worker instance, and is
|
|
|
|
# used by Dockerfile-workers.
|
|
|
|
# Values will be change depending on whichever workers are selected when
|
|
|
|
# running that image.
|
|
|
|
|
|
|
|
worker_app: "{{ app }}"
|
|
|
|
worker_name: "{{ name }}"
|
|
|
|
|
|
|
|
worker_listeners:
|
|
|
|
- type: http
|
2023-07-11 14:08:06 -04:00
|
|
|
{% if using_unix_sockets %}
|
|
|
|
path: "/run/worker.{{ port }}"
|
|
|
|
{% else %}
|
2021-04-14 08:54:49 -04:00
|
|
|
port: {{ port }}
|
2023-07-11 14:08:06 -04:00
|
|
|
{% endif %}
|
2021-04-14 08:54:49 -04:00
|
|
|
{% if listener_resources %}
|
|
|
|
resources:
|
|
|
|
- names:
|
|
|
|
{%- for resource in listener_resources %}
|
|
|
|
- {{ resource }}
|
|
|
|
{%- endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
worker_log_config: {{ worker_log_config_filepath }}
|
|
|
|
|
|
|
|
{{ worker_extra_conf }}
|