mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
feat: Add network mode configuration for Docker in .env and docker-compose
This commit is contained in:
@@ -26,6 +26,12 @@ ABOGEN_TEMP_DIR=./storage/tmp
|
|||||||
ABOGEN_UID=1000
|
ABOGEN_UID=1000
|
||||||
ABOGEN_GID=1000
|
ABOGEN_GID=1000
|
||||||
|
|
||||||
|
# Network mode for the Docker container. Options:
|
||||||
|
# bridge (default) - Isolated container network, uses port mapping
|
||||||
|
# host - Container uses host's network directly, required for
|
||||||
|
# accessing LAN resources like Calibre OPDS servers
|
||||||
|
# ABOGEN_NETWORK_MODE=host
|
||||||
|
|
||||||
# Optional: Seed the web UI with working defaults for the LLM-powered
|
# Optional: Seed the web UI with working defaults for the LLM-powered
|
||||||
# text normalization features. Leave these blank to configure everything
|
# text normalization features. Leave these blank to configure everything
|
||||||
# from the Settings page.
|
# from the Settings page.
|
||||||
|
|||||||
@@ -8,6 +8,11 @@
|
|||||||
#
|
#
|
||||||
# Access the web interface at http://localhost:8808
|
# Access the web interface at http://localhost:8808
|
||||||
#
|
#
|
||||||
|
# Network modes:
|
||||||
|
# - Set ABOGEN_NETWORK_MODE=host in .env to use host networking
|
||||||
|
# (required for accessing LAN resources like Calibre OPDS)
|
||||||
|
# - Leave unset or use "bridge" for isolated container networking
|
||||||
|
#
|
||||||
services:
|
services:
|
||||||
abogen:
|
abogen:
|
||||||
build:
|
build:
|
||||||
@@ -19,6 +24,7 @@ services:
|
|||||||
USE_GPU: ${USE_GPU:-true}
|
USE_GPU: ${USE_GPU:-true}
|
||||||
image: abogen:latest
|
image: abogen:latest
|
||||||
user: "${ABOGEN_UID:-1000}:${ABOGEN_GID:-1000}"
|
user: "${ABOGEN_UID:-1000}:${ABOGEN_GID:-1000}"
|
||||||
|
network_mode: ${ABOGEN_NETWORK_MODE:-bridge}
|
||||||
ports:
|
ports:
|
||||||
- "${ABOGEN_PORT:-8808}:8808"
|
- "${ABOGEN_PORT:-8808}:8808"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user