From 95f8bd6e9569e40dcd506518ac4aba3941024ecd Mon Sep 17 00:00:00 2001 From: LenaertsJ <22+lenaertsj@noreply.localhost> Date: Mon, 8 Jun 2026 09:01:35 +0000 Subject: [PATCH 1/7] Add admin_pwd 4 to env_file in correspondance with chill_app --- templates/env_file.env | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/env_file.env b/templates/env_file.env index b7992a8..00853fe 100644 --- a/templates/env_file.env +++ b/templates/env_file.env @@ -36,6 +36,9 @@ ADMIN_PASSWORD_2={{ item.chill_config.admin_password_2 }} {% if item.chill_config.admin_password_3 is defined -%} ADMIN_PASSWORD_3={{ item.chill_config.admin_password_3 }} {% endif -%} +{% if item.chill_config.admin_password_4 is defined -%} +ADMIN_PASSWORD_4={{ item.chill_config.admin_password_4 }} +{% endif -%} MAILER_DSN={{ item.chill_config.mailer_dsn }} MAILER_URL={{ item.chill_config.mailer_url }} JWT_PASSPHRASE={{ item.chill_config.jwt_passphrase }} From 72e6352b71b2b53629780c12220ba3232852eda5 Mon Sep 17 00:00:00 2001 From: LenaertsJ <22+lenaertsj@noreply.localhost> Date: Tue, 25 Aug 2026 11:37:27 +0000 Subject: [PATCH 2/7] Add admin_pwd 5 and 6 to env_file in correspondance with chill_app --- templates/env_file.env | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/env_file.env b/templates/env_file.env index 00853fe..e12acb4 100644 --- a/templates/env_file.env +++ b/templates/env_file.env @@ -39,6 +39,12 @@ ADMIN_PASSWORD_3={{ item.chill_config.admin_password_3 }} {% if item.chill_config.admin_password_4 is defined -%} ADMIN_PASSWORD_4={{ item.chill_config.admin_password_4 }} {% endif -%} +{% if item.chill_config.admin_password_5 is defined -%} +ADMIN_PASSWORD_5={{ item.chill_config.admin_password_5 }} +{% endif -%} +{% if item.chill_config.admin_password_6 is defined -%} +ADMIN_PASSWORD_6={{ item.chill_config.admin_password_6 }} +{% endif -%} MAILER_DSN={{ item.chill_config.mailer_dsn }} MAILER_URL={{ item.chill_config.mailer_url }} JWT_PASSPHRASE={{ item.chill_config.jwt_passphrase }} From d1bd62529db0207df48acb9eba4381dad09d3e4d Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 7 Sep 2026 16:35:59 +0200 Subject: [PATCH 3/7] add a volume mounted for the app container, for the templates (eg, the sms template) --- templates/compose.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/compose.yaml b/templates/compose.yaml index c8c25db..28a7707 100644 --- a/templates/compose.yaml +++ b/templates/compose.yaml @@ -32,6 +32,7 @@ services: volumes: - './config/prod:/var/www/app/config/packages/prod:ro' - '/var/log/chill:/var/www/app/var/log:rw' + - './templates:/var/www/app/templates:ro' - '{{ doc_storage_dir }}/{{ item['chill_environment'] }}:/var/storage:rw' links: - redis @@ -53,7 +54,7 @@ services: command: - "/bin/bash" - "-c" - - > + - > sleep 3 && bin/console cache:clear && while ! [ -f /tmp/kill_me ]; do From 405a9b98dca47ba902cb322656ff45bada9ea543 Mon Sep 17 00:00:00 2001 From: LenaertsJ <22+lenaertsj@noreply.localhost> Date: Mon, 14 Sep 2026 14:41:50 +0000 Subject: [PATCH 4/7] Remove an admin account One admin account was removed from chill app upon request of vendee --- templates/env_file.env | 3 --- 1 file changed, 3 deletions(-) diff --git a/templates/env_file.env b/templates/env_file.env index e12acb4..6e53257 100644 --- a/templates/env_file.env +++ b/templates/env_file.env @@ -42,9 +42,6 @@ ADMIN_PASSWORD_4={{ item.chill_config.admin_password_4 }} {% if item.chill_config.admin_password_5 is defined -%} ADMIN_PASSWORD_5={{ item.chill_config.admin_password_5 }} {% endif -%} -{% if item.chill_config.admin_password_6 is defined -%} -ADMIN_PASSWORD_6={{ item.chill_config.admin_password_6 }} -{% endif -%} MAILER_DSN={{ item.chill_config.mailer_dsn }} MAILER_URL={{ item.chill_config.mailer_url }} JWT_PASSPHRASE={{ item.chill_config.jwt_passphrase }} From e2ee54f6164623705c73bb7b1051e8a0750d65e2 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 29 Sep 2026 11:10:32 +0200 Subject: [PATCH 5/7] Increase the php memory limit from 2G to 3G for the messenger:consume command, for exports --- templates/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose.yaml b/templates/compose.yaml index 28a7707..b6a1291 100644 --- a/templates/compose.yaml +++ b/templates/compose.yaml @@ -58,7 +58,7 @@ services: sleep 3 && bin/console cache:clear && while ! [ -f /tmp/kill_me ]; do - su -s /bin/bash -c 'php -d memory_limit=2G bin/console messenger:consume priority async --limit=20 --time-limit=600 -v' "www-data"; + su -s /bin/bash -c 'php -d memory_limit=3G bin/console messenger:consume priority async --limit=20 --time-limit=600 -v' "www-data"; done; pre_stop: - command: From 2c57e104eb2f66a7f6b00e2414bbc40624b1be05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 18 Nov 2026 13:11:04 +0100 Subject: [PATCH 6/7] Update monolog configuration with parameterized log prefix and additional handlers Replaced hardcoded 'test' log prefix with `{{ chill.chill_environment }}` variable. Added `errors_log` handler for error-level logging and `deprecation_log` handler to suppress deprecation warnings. Updated channel exclusions and console handler level for improved log management. --- templates/config/prod/monolog.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/config/prod/monolog.yaml b/templates/config/prod/monolog.yaml index 957d1f4..5e16852 100644 --- a/templates/config/prod/monolog.yaml +++ b/templates/config/prod/monolog.yaml @@ -6,7 +6,7 @@ # parameters: - log_prefix: 'test' + log_prefix: '{{ chill.chill_environment }}' monolog: # make a "notifier" channel available channels: ['notifier'] @@ -16,6 +16,10 @@ monolog: path: "%kernel.logs_dir%/notifier-%log_prefix%.log" level: info channels: [ 'notifier' ] + errors_log: + type: stream + path: "%kernel.logs_dir%/error-%log_prefix%.log" + level: error privacy_log: type: stream path: "%kernel.logs_dir%/privacy-%log_prefix%.log" @@ -25,9 +29,15 @@ monolog: type: stream path: "%kernel.logs_dir%/default-%log_prefix%.log" level: info - channels: [ '!event', '!doctrine', '!console', '!chill',] + channels: [ '!event', '!doctrine', '!console', '!chill', '!deprecation'] + deprecation_log: + type: 'null' + channels: [ 'deprecation' ] console: type: console process_psr_3_messages: false - channels: [ '!event', '!doctrine', '!console'] + level: error + channels: [ '!event', '!doctrine', '!console', '!deprecation'] bubble: true + + From bc8caf530b797b3e1bb0ea5ed0047b08007db2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 18 Nov 2026 13:36:12 +0100 Subject: [PATCH 7/7] Configure Docker Compose logging with json-file driver Added logging configuration to all services in `compose.yaml` with json-file driver. Set max-size to 50m for `app` service and 10m for `nginx`, `postgres`, `relatorio`, and `gotenberg` services, with max-file of 3 for log rotation. --- templates/compose.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/templates/compose.yaml b/templates/compose.yaml index b6a1291..89e5b0e 100644 --- a/templates/compose.yaml +++ b/templates/compose.yaml @@ -24,6 +24,11 @@ services: - traefik - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" app: &defaultApp image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_php_name }}:{{ item.chill_image_tag }} @@ -45,6 +50,11 @@ services: networks: - default restart: always + logging: + driver: json-file + options: + max-size: "50m" + max-file: "3" consumer: <<: *defaultApp @@ -92,12 +102,22 @@ services: networks: - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" relatorio: image: "{{ chill_image_relatorio }}" networks: - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" ###< chill-project/chill-bundles ### # sign-worker: @@ -136,6 +156,11 @@ services: networks: - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" networks: traefik: