From b5ed6aedcc13339f6e53306247345e64ea088420 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3520b7814..e826f0a37 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,9 @@ services: - SYSADMIN_EMAIL=${SYSADMIN_EMAIL} command: [ "./wait-for-it.sh", "postgres:5432", "--", "./start-odk.sh" ] restart: always - nginx: + logging: + driver: local + nginx: build: context: . dockerfile: nginx.dockerfile @@ -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