From 41d2d53fddbf550c2dcc3fde641f3c7ddb7b4f80 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 28 Nov 2018 12:18:19 +0100 Subject: [PATCH] new: added logrotation to services letsencrypt, frontend, odoo, cron --- compose.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/compose.yml b/compose.yml index 5c27b14..ef27200 100644 --- a/compose.yml +++ b/compose.yml @@ -13,10 +13,8 @@ odoo: # image: mynewimage relations: - postgres-database: - postgres: - user: odoo - dbname: odoo + log-rotate: logrotate + postgres-database: postgres web-proxy: frontend: domain: mydomain.org @@ -83,8 +81,8 @@ odoo: frontend: charm: apache relations: - cert-provider: - letsencrypt + log-rotate: logrotate + cert-provider: letsencrypt letsencrypt: @@ -101,6 +99,7 @@ letsencrypt: # secret: YYY # consumer_key: ZZZ relations: + log-rotate: logrotate schedule-command: cron: ## will schedule renew of certs every week schedule: "30 3 * * 7" ## min hour day-of-month month day-of-week @@ -109,7 +108,13 @@ letsencrypt: ## Cron is present (even if empty) to add it automatically to any ## ``compose up`` (without arguments). cron: + relations: + log-rotate: logrotate + +logrotate: + relations: + schedule-command: cron ## schedule log rotation of all registered services daily # mattermost: # charm: mattermost