Allow logging to standard output

This commit is contained in:
Mitchell Syer
2022-06-22 11:19:16 -04:00
committed by GitHub
parent 0cedd9a472
commit 8533de62e2
3 changed files with 11 additions and 2 deletions

View File

@@ -37,6 +37,10 @@ Change the default UTC timezone. Use TZ database name from [Timezone list](https
docker run -e "TZ=Europe/London" -p 127.0.0.1:4567:4567 ghcr.io/suwayomi/tachidesk 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 For Tachidesk Preview version
docker run -p 127.0.0.1:4567:4567 ghcr.io/suwayomi/tachidesk:preview docker run -p 127.0.0.1:4567:4567 ghcr.io/suwayomi/tachidesk:preview

View File

@@ -13,6 +13,7 @@ services:
- PUID=1000 - PUID=1000
- PGID=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 - 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: volumes:
- /<path to folder>/docker-config/tachidesk:/home/suwayomi/.local/share/Tachidesk # edit <path to folder> to your mapped folder - /<path to folder>/docker-config/tachidesk:/home/suwayomi/.local/share/Tachidesk # edit <path to folder> to your mapped folder
ports: ports:

View File

@@ -14,5 +14,9 @@ echo ""
echo "Tachidesk data location inside the container -> /home/suwayomi/.local/share/Tachidesk" echo "Tachidesk data location inside the container -> /home/suwayomi/.local/share/Tachidesk"
echo "" echo ""
echo "The server is running by default configuration on http://localhost:4567" echo "The server is running by default configuration on http://localhost:4567"
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" 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; exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar" > /home/suwayomi/.local/share/Tachidesk/logfile.log 2>&1;
fi