mirror of
https://github.com/Suwayomi/docker-tachidesk.git
synced 2025-12-10 06:42:12 +01:00
Database Configuration (#160)
This commit is contained in:
4
.github/workflows/container.yml
vendored
4
.github/workflows/container.yml
vendored
@@ -170,6 +170,10 @@ jobs:
|
||||
-e KOREADER_SYNC_CHECKSUM_METHOD=filename \
|
||||
-e KOREADER_SYNC_STRATEGY=send \
|
||||
-e KOREADER_SYNC_PERCENTAGE_TOLERANCE=0.001 \
|
||||
-e DATABASE_TYPE=H2 \
|
||||
-e DATABASE_URL=postgresql://localhost:5432/suwayomi \
|
||||
-e DATABASE_USERNAME=manga \
|
||||
-e DATABASE_PASSWORD=hello123 \
|
||||
--name=suwayomi_test \
|
||||
${{ env.test_image_tag }}
|
||||
sleep 15
|
||||
|
||||
@@ -36,7 +36,7 @@ Use the template [docker-compose.yml](./docker-compose.yml) in this repo for cre
|
||||
There are a number of environment variables available to configure Suwayomi:
|
||||
|
||||
| Variable | Server Default | Description |
|
||||
|:--------------------------------------:|:------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
|:--------------------------------------:|:--------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| **TZ** | `Etc/UTC` | What time zone the container thinks it is. |
|
||||
| **BIND_IP** | `0.0.0.0` | The interface to listen on, inside the container. You almost never want to change this. |
|
||||
| **BIND_PORT** | `4567` | Which port Suwayomi will listen on |
|
||||
@@ -96,6 +96,11 @@ There are a number of environment variables available to configure Suwayomi:
|
||||
| **KOREADER_SYNC_CHECKSUM_METHOD** | `binary` | "binary" or "filename" |
|
||||
| **KOREADER_SYNC_STRATEGY** | `disabled` | "prompt", "silent", "send", "receive", "disabled" |
|
||||
| **KOREADER_SYNC_PERCENTAGE_TOLERANCE** | `0.00000000000001` | Absolute tolerance for progress comparison from 1 (widest) to 1e-15 (strict) |
|
||||
| **DATABASE_TYPE** | `h2` | "h2" or "postgresql" |
|
||||
| **DATABASE_URL** | `postgresql://localhost:5432/suwayomi` | The URL of the database, only used for non-h2 database |
|
||||
| **DATABASE_USERNAME** | ` ` | Database username, only used for non-h2 database |
|
||||
| **DATABASE_PASSWORD** | ` ` | Database password, only used for non-h2 database |
|
||||
|
||||
|
||||
> [!CAUTION]
|
||||
> This docker image is known to occasionally fail to work. This seems to be caused by problems in the download. If the logs simply end with `LD_PRELOAD=/opt/catch_abort.so /home/suwayomi/.local/share/Tachidesk/bin/kcef/libcef.so`, please remove the downloaded image and pull again. If this does not help, open a [new issue](https://github.com/Suwayomi/Suwayomi-Server-docker/issues/new).
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
---
|
||||
version: '3.7'
|
||||
services:
|
||||
suwayomi:
|
||||
image: ghcr.io/suwayomi/suwayomi-server:preview
|
||||
|
||||
@@ -118,6 +118,12 @@ sed -i -r "s/server.koreaderSyncChecksumMethod = \"(.*?)\"( #)?/server.koreaderS
|
||||
sed -i -r "s/server.koreaderSyncStrategy = \"(.*?)\"( #)?/server.koreaderSyncStrategy = \"${KOREADER_SYNC_STRATEGY:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.koreaderSyncPercentageTolerance = ([0-9\.]+|[a-zA-Z]+)?/server.koreaderSyncPercentageTolerance = ${KOREADER_SYNC_PERCENTAGE_TOLERANCE:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
|
||||
# database
|
||||
sed -i -r "s/server.databaseType = \"(.*?)\"( #)?/server.databaseType = \"${DATABASE_TYPE:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s|server.databaseUrl = \"(.*?)\"( #)?|server.databaseUrl = \"${DATABASE_URL:-\1}\" #|" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.databaseUsername = \"(.*?)\"( #)?/server.databaseUsername = \"${DATABASE_USERNAME:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.databasePassword = \"(.*?)\"( #)?/server.databasePassword = \"${DATABASE_PASSWORD:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
|
||||
rm -rf /home/suwayomi/.local/share/Tachidesk/cache/kcef/Singleton*
|
||||
|
||||
if command -v Xvfb >/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user