[Enhancement]: set internal listening port for docker #1337

Closed
opened 2026-04-24 23:40:14 +02:00 by adam · 2 comments
Owner

Originally created by @TomErnst1972 on GitHub (Aug 30, 2023).

Describe the feature/enhancement

Hi there,

I'm using the docker version with -p 8877:80 port forwarding.
But I'd like to be able and user --net=host, therefore would like to change the internal Port 80 to something else. Is this possible via -e parameters? Or docker-compose.yml?

cheers,
Tom

Originally created by @TomErnst1972 on GitHub (Aug 30, 2023). ### Describe the feature/enhancement Hi there, I'm using the docker version with -p 8877:80 port forwarding. But I'd like to be able and user --net=host, therefore would like to change the internal Port 80 to something else. Is this possible via -e parameters? Or docker-compose.yml? cheers, Tom
adam added the enhancement label 2026-04-24 23:40:14 +02:00
adam closed this issue 2026-04-24 23:40:14 +02:00
Author
Owner

@advplyr commented on GitHub (Aug 31, 2023):

I've never actually tried with the docker container but you should be able to use the env variable PORT to set that. https://github.com/advplyr/audiobookshelf/blob/master/index.js#L17

-e PORT=3333

@advplyr commented on GitHub (Aug 31, 2023): I've never actually tried with the docker container but you should be able to use the env variable `PORT` to set that. https://github.com/advplyr/audiobookshelf/blob/master/index.js#L17 `-e PORT=3333`
Author
Owner

@TomErnst1972 commented on GitHub (Aug 31, 2023):

Dude, you are the greatest! :-) Thats it, it worked immediately! Thank you very much

@TomErnst1972 commented on GitHub (Aug 31, 2023): Dude, you are the greatest! :-) Thats it, it worked immediately! Thank you very much
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1337