Commit 91a68da2371cbdbfbde1e846c78dc7975c033847

Authored by Олександр Басенко
1 parent c0d58456be
Exists in master

add log-opt

Showing 1 changed file with 15 additions and 2 deletions Side-by-side Diff

... ... @@ -9,6 +9,11 @@
9 9 environment:
10 10 - POSTGRES_USER=webportal
11 11 - POSTGRES_PASSWORD=XrUXlw1YlASdJgID
  12 + logging:
  13 + driver: "json-file"
  14 + options:
  15 + max-size: "10m"
  16 + max-file: "3"
12 17  
13 18 odoo:
14 19 build: ./odoo
... ... @@ -24,7 +29,11 @@
24 29 - ${ODOO_LIB}:/var/lib/odoo
25 30 - ${ODOO_ETC}:/etc/odoo
26 31 - ${ODOO_BACKUP}:/backup
27   -
  32 + logging:
  33 + driver: "json-file"
  34 + options:
  35 + max-size: "10m"
  36 + max-file: "3"
28 37 nginx:
29 38 build: ./nginx
30 39 image: nginx/webportal
... ... @@ -37,7 +46,11 @@
37 46 - "443:443"
38 47 depends_on:
39 48 - odoo
40   -
  49 + logging:
  50 + driver: "json-file"
  51 + options:
  52 + max-size: "1m"
  53 + max-file: "2"
41 54 volumes:
42 55 ${ODOO_REPO}:
43 56 external: true