From eeffc2191c77005fea125d208e64f19cfd4b6b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Tue, 12 May 2020 10:04:43 +0200 Subject: [PATCH] Update instructions, restore log driver --- README.md | 15 +++++++++++++-- alpine/Dockerfile | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2f3fe98..2dc7767 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ docker run -d \ -e DB_DATABASE='ninja' \ -e DB_USERNAME='ninja' \ -e DB_PASSWORD='ninja' \ - -e LOG=errorlog \ -p '9000:9000' \ invoiceninja/invoiceninja ``` @@ -91,7 +90,19 @@ If you are running the `docker-compose` setup you can output all logs, from all docker-compose logs -f ``` -If you better want a physical log file in in your `storage/logs` folder, just remove this line `-e LOG=errorlog` from the [usage](#usage) command or change it to `-e LOG=single`. Both works. +If you better want a physical log file in in your `storage/logs` folder, just add `-e LOG=single` to the [usage](#usage) command. +Or add an environment variable + +```yml +... +environment: + LOG: single +... +``` + +to your `docker-compose.yml`. + +This generated log file will only hold Invoice Ninja information. ### Known issues diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 95d3496..0b828d4 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -52,6 +52,7 @@ RUN curl -o ninja.zip -SL https://download.invoiceninja.com/ninja-v${INVOICENINJ ###### # DEFAULT ENV ###### +ENV LOG errorlog ENV SELF_UPDATER_SOURCE '' ENV PHANTOMJS_BIN_PATH /usr/local/bin/phantomjs