Files
2026-10-29 16:53:11 -04:00

38 lines
1.4 KiB
Django/Jinja
Executable File

# Official discourse_docker web-only image build configuration.
# Runtime credentials and Kubernetes service addresses are provided by the Pod.
templates:
- templates/web.template.yml
- templates/web.ratelimited.template.yml
params:
version: {{ discourse_application_version | to_json }}
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
DISCOURSE_HOSTNAME: {{ discourse_hostname | to_json }}
DISCOURSE_DEVELOPER_EMAILS: {{ discourse_developer_emails | join(',') | to_json }}
DISCOURSE_SMTP_ADDRESS: {{ discourse_smtp_address | default('smtp.example.invalid', true) | to_json }}
DISCOURSE_DB_SOCKET: ""
DISCOURSE_DB_HOST: postgres
DISCOURSE_DB_USERNAME: discourse
DISCOURSE_DB_PASSWORD: build-only-placeholder
DISCOURSE_REDIS_HOST: redis
DISCOURSE_REDIS_PASSWORD: build-only-placeholder
volumes:
- volume:
host: {{ discourse_build_root }}/shared/web-only
guest: /shared
- volume:
host: {{ discourse_build_root }}/shared/web-only/log/var-log
guest: /var/log
{% if discourse_plugins | length > 0 %}
hooks:
after_code:
{% for plugin in discourse_plugins %}
- exec:
cd: $home/plugins
cmd:
- git clone --depth 1{% if plugin.ref | default('') | length > 0 %} --branch {{ plugin.ref | quote }}{% endif %} {{ plugin.repository | quote }} {{ plugin.name | quote }}
{% endfor %}
{% endif %}