Browse Source

new: added logrotation to services letsencrypt, frontend, odoo, cron

master
Valentin Lab 6 years ago
parent
commit
41d2d53fdd
  1. 17
      compose.yml

17
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

Loading…
Cancel
Save