mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-08 06:08:05 +00:00
Removed obsolete EXPOSE/healthcheck from Dockerfile and added robust service-specific healthchecks: - web: HTTP robots.txt check - worker/scheduler: php -v runtime check - opensearch: cluster health API check Added TRUSTED_PROXIES=* for proxy-aware headers and centralized OPENSEARCH_PORT in vars. Context: discussed implementation details in ChatGPT conversation on 2025-11-06 — https://chatgpt.com/share/690c9fb3-79f4-800f-bbdf-ea370c8f142c
34 lines
1.2 KiB
Django/Jinja
34 lines
1.2 KiB
Django/Jinja
# DOMAIN/URL
|
|
DOMAIN={{ domains | get_domain(application_id) }}
|
|
APP_URL="{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
|
|
APP_DEBUG="{{ MODE_DEBUG | ternary(1, 0) }}"
|
|
|
|
# Shopware
|
|
APP_ENV={{ 'dev' if (ENVIRONMENT | lower) == 'development' else 'prod' }}
|
|
TRUSTED_PROXIES=*
|
|
INSTANCE_ID={{ application_id }}
|
|
|
|
# Database
|
|
DATABASE_URL="mysql://{{ database_username }}:{{ database_password }}@{{ database_host }}:{{ database_port }}/{{ database_name }}"
|
|
|
|
# Redis (optional)
|
|
{% if SHOPWARE_REDIS_ENABLED | bool %}
|
|
REDIS_URL="redis://{{ SHOPWARE_REDIS_ADDRESS }}/0"
|
|
CACHE_URL="redis://{{ SHOPWARE_REDIS_ADDRESS }}/1"
|
|
MESSENGER_TRANSPORT_DSN="redis://{{ SHOPWARE_REDIS_ADDRESS }}/2"
|
|
{% else %}
|
|
CACHE_URL="file://cache"
|
|
{% endif %}
|
|
|
|
{% if SHOPWARE_OPENSEARCH_ENABLED %}
|
|
# Search
|
|
ELASTICSEARCH_URL="http://opensearch:{{ SHOPWARE_OPENSEARCH_PORT }}"
|
|
OPENSEARCH_URL="http://opensearch:{{ SHOPWARE_OPENSEARCH_PORT }}"
|
|
OPENSEARCH_HOST="opensearch"
|
|
OPENSEARCH_PORT_NUMBER="{{ SHOPWARE_OPENSEARCH_PORT }}"
|
|
OPENSEARCH_INITIAL_ADMIN_PASSWORD="{{ users.administrator.password }}"
|
|
{% endif %}
|
|
|
|
# Mail (Mailu)
|
|
MAILER_DSN="smtps://{{ users['no-reply'].email }}:{{ users['no-reply'].mailu_token }}@{{ SYSTEM_EMAIL.HOST }}:{{ SYSTEM_EMAIL.PORT }}"
|