Fix Docker host binding
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# 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
|
||||
|
||||
- Renamed the project and user-facing app identity to `h-player`.
|
||||
|
||||
@@ -25,7 +25,7 @@ docker compose up --build
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ services:
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
environment:
|
||||
HOST: 0.0.0.0
|
||||
LIBRARY_DIR: /library
|
||||
DATA_DIR: /data
|
||||
# Uncomment these to require browser Basic Auth.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "h-player",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"private": true,
|
||||
"description": "A small private web app for browsing a folder-based video collection.",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user