TheWicklowWolf / eBookBuddy

Book discovery tool that provides recommendations based on selected Readarr books, using Goodreads.
MIT License
42 stars 0 forks source link

Expose Port as Environment Variable #5

Closed Snuffy2 closed 3 months ago

Snuffy2 commented 3 months ago

Allows users to set EBB_PORT to the desired Port. Defaults to 5000 if not set.

Fixes #3

Example Docker Compose:

services:
  ebookbuddy:
    image: thewicklowwolf/ebookbuddy:latest
    container_name: ebookbuddy
    network_mode: service:vpn
    restart: unless-stopped
    ports:
      - 5010:5010
    environment:
      EBB_PORT: 5010
      readarr_address: http://vpn:8788
      readarr_api_key: 1234567890
      root_folder_path: /data/eBooks/Collection/
      auto_start: True
      search_for_missing_book: True
    volumes:
      - /path/to/config:/ebookbuddy/config
      - /etc/localtime:/etc/localtime:ro
TheWicklowWolf commented 3 months ago

No plans to make the internal port configurable, mainly for two reasons: consistency with other repositories and a policy of only making changes when they are strictly critical to functionality. Apologies if you put significant effort into this.

As a workaround see this from @TheLazyGeekGuy https://github.com/TheWicklowWolf/Lidify/issues/3#issuecomment-2187351431

Download and modify gunicorn_config.py with the correct local port you want, mount it as a .. file !

it does the job :)

    volumes:
      - /local_path/gunicorn_config.py:/lidify/gunicorn_config.py