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