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 # image: mynewimage
relations: relations:
postgres-database:
postgres:
user: odoo
dbname: odoo
log-rotate: logrotate
postgres-database: postgres
web-proxy: web-proxy:
frontend: frontend:
domain: mydomain.org domain: mydomain.org
@ -83,8 +81,8 @@ odoo:
frontend: frontend:
charm: apache charm: apache
relations: relations:
cert-provider:
letsencrypt
log-rotate: logrotate
cert-provider: letsencrypt
letsencrypt: letsencrypt:
@ -101,6 +99,7 @@ letsencrypt:
# secret: YYY # secret: YYY
# consumer_key: ZZZ # consumer_key: ZZZ
relations: relations:
log-rotate: logrotate
schedule-command: schedule-command:
cron: ## will schedule renew of certs every week cron: ## will schedule renew of certs every week
schedule: "30 3 * * 7" ## min hour day-of-month month day-of-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 ## Cron is present (even if empty) to add it automatically to any
## ``compose up`` (without arguments). ## ``compose up`` (without arguments).
cron: cron:
relations:
log-rotate: logrotate
logrotate:
relations:
schedule-command: cron ## schedule log rotation of all registered services daily
# mattermost: # mattermost:
# charm: mattermost # charm: mattermost

Loading…
Cancel
Save