Compare commits

..

2 Commits

Author SHA1 Message Date
4cef67a91d Add "managed by Ansible" notice to all template files
Included comments at the top of all template files indicating that they are managed by Ansible and should not be edited manually. This ensures clarity and avoids unintended manual modifications.
2025-09-11 11:01:50 +02:00
d1cf7d363a Set CLEAR_CACHE environment variable and update consumer command in compose.yaml 2025-09-11 11:01:39 +02:00
10 changed files with 15 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
# This file is managed by ansible. Do not edit it by hand
services: services:
frontend: frontend:
image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_nginx_name }}:{{ item.chill_image_tag }} image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_nginx_name }}:{{ item.chill_image_tag }}
@@ -46,6 +48,8 @@ services:
consumer: consumer:
<<: *defaultApp <<: *defaultApp
entrypoint: "/usr/bin/env" entrypoint: "/usr/bin/env"
environment:
CLEAR_CACHE: "false" # pre-generating the cache cause issue with permissions on the cache directory.
command: command:
- "/bin/bash" - "/bin/bash"
- "-c" - "-c"
@@ -53,12 +57,7 @@ services:
sleep 3 && bin/console cache:clear && sleep 3 && bin/console cache:clear &&
while ! [ -f /tmp/kill_me ]; while ! [ -f /tmp/kill_me ];
do do
su -s /bin/bash -c 'php -d memory_limit=2G bin/console messenger:consume priority async --limit=20 --time-limit=600 -v' "$PHP_FPM_USER"; su -s /bin/bash -c 'php -d memory_limit=2G bin/console messenger:consume priority async --limit=20 --time-limit=600 -v' "www-data";
rc=$?;
if [ $rc -ne 0 ]; then
echo "Consumer exited with status $rc. Stopping container.";
exit $rc;
fi
done; done;
pre_stop: pre_stop:
- command: - command:

View File

@@ -1,3 +1,4 @@
# this file is managed by ansible. Do not edit it by hand
chill_doc_store: chill_doc_store:
use_driver: local_storage use_driver: local_storage
local_storage: local_storage:

View File

@@ -1,3 +1,5 @@
# this file is managed by ansible. Do not edit it by hand
framework: framework:
trusted_proxies: '127.0.0.1,REMOTE_ADDR{% for ip in traefik_trusted_ips|default([]) %},{{ ip }}{% endfor %}' trusted_proxies: '127.0.0.1,REMOTE_ADDR{% for ip in traefik_trusted_ips|default([]) %},{{ ip }}{% endfor %}'
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port'] trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']

View File

@@ -1,3 +1,4 @@
# this file is managed by ansible. Do not edit it by hand
lexik_jwt_authentication: lexik_jwt_authentication:
# in production, the secret must be located in an environment variable # in production, the secret must be located in an environment variable
# for converting the file to a raw variable, use this command: # for converting the file to a raw variable, use this command:

View File

@@ -1,3 +1,4 @@
# this file is managed by ansible. Do not edit it by hand
framework: framework:
messenger: messenger:
transports: transports:

View File

@@ -1,3 +1,4 @@
# this file is managed by ansible. Do not edit it by hand
parameters: parameters:
log_prefix: {{ item.chill_environment }} log_prefix: {{ item.chill_environment }}
monolog: monolog:

View File

@@ -1,3 +1,4 @@
# This file is managed by ansible. Do not edit it by hand
APP_ENV=prod APP_ENV=prod
APP_DEBUG=false APP_DEBUG=false
TRUSTED_PROXIES=10.0.0.0/8,192.168.0.0/16,172.16.0.0/16 TRUSTED_PROXIES=10.0.0.0/8,192.168.0.0/16,172.16.0.0/16

View File

@@ -1,3 +1,4 @@
# this file is managed by ansible. Do not edit it by hand
POSTGRES_DB={{ item.chill_config.database_name }} POSTGRES_DB={{ item.chill_config.database_name }}
POSTGRES_USER={{ item.chill_config.database_user }} POSTGRES_USER={{ item.chill_config.database_user }}
POSTGRES_PASSWORD={{ item.chill_config.database_password }} POSTGRES_PASSWORD={{ item.chill_config.database_password }}

View File

@@ -1,2 +1,3 @@
# this file is managed by ansible. Do not edit it by hand.
RABBITMQ_DEFAULT_USER={{ item.chill_config.rabbitmq_user }} RABBITMQ_DEFAULT_USER={{ item.chill_config.rabbitmq_user }}
RABBITMQ_DEFAULT_PASS={{ item.chill_config.rabbitmq_password }} RABBITMQ_DEFAULT_PASS={{ item.chill_config.rabbitmq_password }}

View File

@@ -1,3 +1,4 @@
# this file is managed by ansible. Do not edit it by hand.
services: services:
reverse-proxy: reverse-proxy:
# The official v3 Traefik docker image # The official v3 Traefik docker image