[PR #2297] [CLOSED] Wrong port EXPOSEd in Dockerfile / Wrong port specified in Documentation #3689

Closed
opened 2026-04-25 00:16:40 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2297
Author: @Cloufish
Created: 11/9/2023
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Dockerfile (+1 -1)

📄 Description

The Exposed Port should be the one that is specified in the documentation.

Port 80 causes routing issues.
I got "Bad Gateway, Connection Refused" when I try to connect to the webpage via Traefik
image
image

Traefik logs:

image

audiobookshelf Docker logs:
image

Let's see it in another example - anki sync server

image
It's a correct one, because the docker-compose also points to this port:
image

If it's impossible to change this port in Dockerfile, the docker-compose.yml example should contain 80 port

image

docker run -d \
  -p **80**:80 \
  -v </path/to/config>:/config \
  -v </path/to/metadata>:/metadata \
  -v </path/to/audiobooks>:/audiobooks \
  -v </path/to/podcasts>:/podcasts \
  --name audiobookshelf \
  ghcr.io/advplyr/audiobookshelf

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/2297 **Author:** [@Cloufish](https://github.com/Cloufish) **Created:** 11/9/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`3fe5903`](https://github.com/advplyr/audiobookshelf/commit/3fe5903e21262a7dcb77644b4e72d7686d152b54) Update Dockerfile ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) </details> ### 📄 Description The Exposed Port should be the one that is specified in the documentation. Port 80 causes routing issues. I got "Bad Gateway, Connection Refused" when I try to connect to the webpage via Traefik ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/cf536486-0136-4a7f-9c4c-e442cfbd4048) ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/c9a0bae7-3cd4-4b7f-95a6-d3ed6a523e6e) **Traefik logs**: ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/e5bc998b-a022-430d-8d50-4c0260795bbc) **audiobookshelf Docker logs**: ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/10c194c3-20eb-4057-bfc5-d9df6dc29c7b) Let's see it in another example - anki sync server ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/342ff76c-04bf-425c-be8b-900cbbbf7968) It's a correct one, because the docker-compose also points to this port: ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/c8281744-157a-4b1f-a122-48fe2281341a) **If it's impossible to change this port in Dockerfile, the docker-compose.yml example should contain 80 port** ![image](https://github.com/advplyr/audiobookshelf/assets/32965886/c02f9cec-11fb-4339-b747-43a7892772f7) ``` docker run -d \ -p **80**:80 \ -v </path/to/config>:/config \ -v </path/to/metadata>:/metadata \ -v </path/to/audiobooks>:/audiobooks \ -v </path/to/podcasts>:/podcasts \ --name audiobookshelf \ ghcr.io/advplyr/audiobookshelf ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:16:40 +02:00
adam closed this issue 2026-04-25 00:16:40 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3689