diff --git a/README.md b/README.md index 092d243..9569121 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,10 @@ Expose to all ips Change the default UTC timezone. Use TZ database name from [Timezone list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) docker run -e "TZ=Europe/London" -p 127.0.0.1:4567:4567 ghcr.io/suwayomi/tachidesk + +Change the logging location from a file to standard output + + docker run -e "LOGGING=out" -p 127.0.0.1:4567:4567 ghcr.io/suwayomi/tachidesk For Tachidesk Preview version diff --git a/compose.yml b/compose.yml index b057b8c..2c9aa96 100644 --- a/compose.yml +++ b/compose.yml @@ -13,6 +13,7 @@ services: - PUID=1000 - PGID=1000 - TZ=< change it to your timezone > # Use TZ database name from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + - LOGGING=file volumes: - //docker-config/tachidesk:/home/suwayomi/.local/share/Tachidesk # edit to your mapped folder ports: diff --git a/scripts/startup_script.sh b/scripts/startup_script.sh index 82ca84c..235ffc1 100644 --- a/scripts/startup_script.sh +++ b/scripts/startup_script.sh @@ -14,5 +14,9 @@ echo "" echo "Tachidesk data location inside the container -> /home/suwayomi/.local/share/Tachidesk" echo "" echo "The server is running by default configuration on http://localhost:4567" -echo "log file location inside the container -> /home/suwayomi/.local/share/Tachidesk/logfile.log" -exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar" > /home/suwayomi/.local/share/Tachidesk/logfile.log 2>&1; +if [ "${LOGGING:-file}" != "file" ]; then + exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar"; +else + echo "log file location inside the container -> /home/suwayomi/.local/share/Tachidesk/logfile.log" + exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar" > /home/suwayomi/.local/share/Tachidesk/logfile.log 2>&1; +fi