From 7d293bb258514c0ec62aa7fa392d34106382c4f7 Mon Sep 17 00:00:00 2001 From: Yaw Anokwa Date: Wed, 1 Sep 2021 15:59:04 -0700 Subject: [PATCH] Enable local driver for log rotation --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 3520b781..c19e2596 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,8 @@ services: - SYSADMIN_EMAIL=${SYSADMIN_EMAIL} command: [ "./wait-for-it.sh", "postgres:5432", "--", "./start-odk.sh" ] restart: always + logging: + driver: local nginx: build: context: . @@ -52,6 +54,10 @@ services: healthcheck: test: [ "CMD-SHELL", "nc -z localhost 80 || exit 1" ] restart: always + logging: + driver: local + options: + max-file: "30" pyxform: image: 'getodk/pyxform-http:v1.5.1' restart: always