feat: Add network mode configuration for Docker in .env and docker-compose

This commit is contained in:
JB
2025-12-22 06:42:00 -08:00
parent 89645682f1
commit 4272c847f7
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -8,6 +8,11 @@
#
# 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:
abogen:
build:
@@ -19,6 +24,7 @@ services:
USE_GPU: ${USE_GPU:-true}
image: abogen:latest
user: "${ABOGEN_UID:-1000}:${ABOGEN_GID:-1000}"
network_mode: ${ABOGEN_NETWORK_MODE:-bridge}
ports:
- "${ABOGEN_PORT:-8808}:8808"
volumes: