From 0db2837f13e3ae8689054a5195e24a560ba96739 Mon Sep 17 00:00:00 2001 From: coder3101 Date: Wed, 15 Jul 2026 01:08:00 +0530 Subject: [PATCH] Default to --host 0.0.0.0 in Docker and docker-compose --- Dockerfile | 2 +- README.md | 7 ++++--- docker-compose.yml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec38a59..e3a44a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,4 +44,4 @@ EXPOSE 8381 VOLUME ["/app/data", "/app/hf_cache", "/app/lenses"] -ENTRYPOINT ["python3.11", "-X", "utf8", "run.py"] +ENTRYPOINT ["python3.11", "-X", "utf8", "run.py", "--host", "0.0.0.0"] diff --git a/README.md b/README.md index 291c6f9..5e69ee6 100644 --- a/README.md +++ b/README.md @@ -90,11 +90,12 @@ Or use Docker Compose: docker compose up -d ``` -The container runs `python -X utf8 run.py` by default. Pass additional arguments -(e.g. `--port`, `--data-dir`, `--hf-cache`) after the image name: +The container binds to `0.0.0.0` by default so the UI is reachable from outside +the container. Pass additional arguments (e.g. `--port`, `--host`) after the image +name: ```bash -docker run --gpus all -p 8381:8381 j-wash --port 8381 --data-dir /app/data --hf-cache /app/hf_cache +docker run --gpus all -p 8381:8381 j-wash --port 8381 --host 0.0.0.0 ``` Set `HF_TOKEN` for gated/private models: diff --git a/docker-compose.yml b/docker-compose.yml index 7aa7767..5eb20fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: - ./hf_cache:/app/hf_cache - ./lenses:/app/lenses environment: + - JWASH_HOST=0.0.0.0 - HF_HOME=/app/hf_cache - JWASH_DATA_DIR=/app/data - HF_TOKEN=${HF_TOKEN:-}