summary refs log tree commit diff
path: root/docker/conf-workers/worker.yaml.j2
blob: 29ec74b4ea04ce6f1d8215b6c8e16cdc730a7115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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
{% if using_unix_sockets %}
    path: "/run/worker.{{ port }}"
{% else %}
    port: {{ port }}
{% endif %}
{% if listener_resources %}
    resources:
      - names:
{%- for resource in listener_resources %}
        - {{ resource }}
{%- endfor %}
{% endif %}

worker_log_config: {{ worker_log_config_filepath }}

{{ worker_extra_conf }}