2022-08-16 15:28:29 +02:00
|
|
|
# {{ ansible_managed }}
|
2022-07-19 14:26:08 +02:00
|
|
|
PODMAN_ARGS="\
|
|
|
|
--name 'cadoles-pod-hydra-dispatcher-v1' \
|
|
|
|
--replace \
|
|
|
|
--network=slirp4netns:allow_host_loopback=true \
|
2022-08-04 13:49:15 +02:00
|
|
|
--tz=local \
|
2023-12-04 09:21:03 +01:00
|
|
|
-p 127.0.0.1:3000:8080 \
|
2022-07-19 14:26:08 +02:00
|
|
|
-e APP_ENV=prod \
|
2022-08-02 16:56:06 +02:00
|
|
|
-e 'APP_DEBUG={{ hydra_dispatcher_debug }}' \
|
2022-07-19 14:26:08 +02:00
|
|
|
-e HYDRA_ADMIN_BASE_URL=http://10.0.2.2:4445 \
|
|
|
|
-e HYDRA_BASE_URL=http://10.0.2.2:4444 \
|
|
|
|
-e HYDRA_REWRITE_ISSUER=no \
|
2022-07-21 14:19:23 +02:00
|
|
|
-e 'HYDRA_ORIGINAL_ISSUER={{ haproxy_public_base_url }}' \
|
|
|
|
-e 'HYDRA_NEW_ISSUER={{ haproxy_public_base_url }}' \
|
2022-08-10 17:46:19 +02:00
|
|
|
-e 'BASE_URL={{ haproxy_public_base_url }}{{ haproxy_hydra_dispatcher_base_path }}' \
|
2022-08-02 16:56:06 +02:00
|
|
|
-e 'COOKIE_PATH={{ hydra_dispatcher_cookie_path }}' \
|
2022-08-10 17:46:19 +02:00
|
|
|
-e 'DEFAULT_LOCALE={{ hydra_dispatcher_default_locale }}' \
|
|
|
|
-e 'APP_LOCALES={{ hydra_dispatcher_available_locales | join(',') }}' \
|
|
|
|
-e 'HYDRA_ADMIN_AUTHORIZED_HOSTS={{ hydra_dispatcher_admin_authorized_hosts | join(',') }}' \
|
2022-08-16 15:30:08 +02:00
|
|
|
-e 'TRUSTED_PROXIES=127.0.0.1,10.0.2.0/24' \
|
2022-08-16 16:38:36 +02:00
|
|
|
-e 'SENTRY_DSN={{ hydra_dispatcher_sentry_dsn }}' \
|
|
|
|
-e 'SENTRY_ENVIRONMENT={{ hydra_dispatcher_sentry_environment }}' \
|
2024-07-12 14:25:31 +02:00
|
|
|
-e 'REDIS_DSN={{ hydra_dispatcher_redis_dsn }}' \
|
2024-07-12 16:51:29 +02:00
|
|
|
--mount type=tmpfs,tmpfs-size=512M,destination=/app/var/cache \
|
2023-02-15 15:48:23 +01:00
|
|
|
-e 'DISABLE_APP_AUTO_SELECT={{ hydra_dispatcher_disable_app_auto_select }}' \
|
2023-12-04 09:21:03 +01:00
|
|
|
-e 'PHP_FPM_MEMORY_LIMIT=128m' \
|
2024-07-12 16:51:29 +02:00
|
|
|
-e 'PHP_FPM_MAX_CHILDREN=128' \
|
|
|
|
-e 'PHP_FPM_START_SERVERS=42' \
|
|
|
|
-e 'PHP_FPM_MIN_SPARE_SERVERS=24' \
|
|
|
|
-e 'PHP_FPM_MAX_SPARE_SERVERS=64' \
|
|
|
|
-v /etc/hydra-dispatcher/www.conf.gotmpl:/etc/php81/php-fpm.d/www.conf.gotmpl \
|
2023-12-04 09:21:03 +01:00
|
|
|
-v /etc/hydra-dispatcher/conf.d:/app/config/hydra \
|
2022-10-27 16:54:18 +02:00
|
|
|
{% for item in hydra_dispatcher_mounts %}
|
|
|
|
-v {{ item.host }}:{{ item.container }} \
|
|
|
|
{% endfor %}
|
2022-07-19 14:26:08 +02:00
|
|
|
"
|