Default to --host 0.0.0.0 in Docker and docker-compose

This commit is contained in:
coder3101
2026-07-15 01:08:00 +05:30
parent ed59ac964b
commit 0db2837f13
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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"]
+4 -3
View File
@@ -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:
+1
View File
@@ -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:-}