Fix Docker host binding

This commit is contained in:
Dymas
2026-09-15 15:32:49 +02:00
parent e191bf3b7b
commit a2b26f6680
5 changed files with 8 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
# Changelog # Changelog
## 1.2.1 - 2026-09-15
- Set the Docker Compose container host binding to `0.0.0.0` so Docker's localhost port mapping can reach h-player while keeping the host publish on `127.0.0.1`.
## 1.2.0 - 2026-09-15 ## 1.2.0 - 2026-09-15
- Renamed the project and user-facing app identity to `h-player`. - Renamed the project and user-facing app identity to `h-player`.
+1 -1
View File
@@ -25,7 +25,7 @@ docker compose up --build
Open http://localhost:3000. Open http://localhost:3000.
The app binds to `127.0.0.1` by default, so it is only reachable from the same machine unless you explicitly set `HOST`. The compose file publishes the container on `127.0.0.1:3000`. Your library is mounted read-only, while metadata and generated thumbnails are saved in `/data` inside the container. The app binds to `127.0.0.1` by default when run directly. Docker Compose sets `HOST=0.0.0.0` inside the container so Docker's port forward can reach the app, while still publishing the host port only on `127.0.0.1:3000`. Your library is mounted read-only, while metadata and generated thumbnails are saved in `/data` inside the container.
The included compose file keeps the existing `/mnt/ssd2/docker_data/h-play` host data path so renaming the app to h-player does not hide metadata from an already-running instance. Move that directory yourself before changing the mount path. The included compose file keeps the existing `/mnt/ssd2/docker_data/h-play` host data path so renaming the app to h-player does not hide metadata from an already-running instance. Move that directory yourself before changing the mount path.
+1 -1
View File
@@ -1 +1 @@
1.2.0 1.2.1
+1
View File
@@ -5,6 +5,7 @@ services:
ports: ports:
- "127.0.0.1:3000:3000" - "127.0.0.1:3000:3000"
environment: environment:
HOST: 0.0.0.0
LIBRARY_DIR: /library LIBRARY_DIR: /library
DATA_DIR: /data DATA_DIR: /data
# Uncomment these to require browser Basic Auth. # Uncomment these to require browser Basic Auth.
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "h-player", "name": "h-player",
"version": "1.2.0", "version": "1.2.1",
"private": true, "private": true,
"description": "A small private web app for browsing a folder-based video collection.", "description": "A small private web app for browsing a folder-based video collection.",
"scripts": { "scripts": {