Skip to content

Commit

Permalink
[skip ci] Fix/broken server startup due to incorrect env vars in dock…
Browse files Browse the repository at this point in the history
…er compose file (#88)

* Remove '"' from the FlareSolverr url in compose file

Causes the "startup_script.sh" to throw an error

* Comment out default env vars in compose file

* Update "env vars" readme section
  • Loading branch information
schroda committed Feb 2, 2024
1 parent a2dcd0e commit a66ac97
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Use the template [docker-compose.yml](./docker-compose.yml) in this repo for cre

# Environment Variables

> [!NOTE]
> See [server-reference.conf](https://github.com/Suwayomi/Suwayomi-Server/blob/master/server/src/main/resources/server-reference.conf) in the [Suwayomi-Server](https://github.com/Suwayomi/Suwayomi-Server) repository for the default values
> [!CAUTION]
> Providing an environment variable will <b>overwrite</b> the current setting value when starting the container.
> [!Tip]
> Settings can be changed during runtime via the webUI.
> Most of the time you don't need to use environment variables, instead settings can be changed during runtime via the webUI. (which will be rendered useless when providing an environment variable)
> [!CAUTION]
> Providing an environment variable will overwrite the current value in the server.conf file.
> [!NOTE]
> See [server-reference.conf](https://github.com/Suwayomi/Suwayomi-Server/blob/master/server/src/main/resources/server-reference.conf) in the [Suwayomi-Server](https://github.com/Suwayomi/Suwayomi-Server) repository for the default values
There are a number of environment variables available to configure Suwayomi:

Expand Down
31 changes: 20 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,26 @@ services:
image: ghcr.io/suwayomi/tachidesk:preview
environment:
- TZ=Etc/UTC # Use TZ database name from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- DEBUG=true
- BIND_IP=0.0.0.0
- BIND_PORT=4567
- SOCKS_PROXY_ENABLED=false
- DOWNLOAD_AS_CBZ=true
- MAX_PARALLEL_UPDATE=3
- BASIC_AUTH_ENABLED=true
- BASIC_AUTH_USERNAME=manga
- BASIC_AUTH_PASSWORD=hello123
- FLARESOLVERR_ENABLED=true
- FLARESOLVERR_URL="http://flaresolverr:8191"
# #################################################################################################
#
# !!! IMPORTANT !!!
# - server settings can be changed during runtime in the WebUI
# - providing an environment variable will OVERWRITE the current setting value when starting the container
#
# #################################################################################################
#
# example for setting env vars:
#
# - BIND_IP=0.0.0.0
# - BIND_PORT=4567
# - SOCKS_PROXY_ENABLED=false
# - DOWNLOAD_AS_CBZ=true
# - BASIC_AUTH_ENABLED=true
# - BASIC_AUTH_USERNAME=manga
# - BASIC_AUTH_PASSWORD=hello123
# - EXTENSION_REPOS=["http://github.com/orginazation-name/repo-name", "http://github.com/orginazation-name-2/repo-name-2"]
# - FLARESOLVERR_ENABLED=true
# - FLARESOLVERR_URL=http://flaresolverr:8191
volumes:
- ./data:/home/suwayomi/.local/share/Tachidesk
ports:
Expand Down

0 comments on commit a66ac97

Please sign in to comment.