Default to --host 0.0.0.0 in Docker and docker-compose
This commit is contained in:
+1
-1
@@ -44,4 +44,4 @@ EXPOSE 8381
|
|||||||
|
|
||||||
VOLUME ["/app/data", "/app/hf_cache", "/app/lenses"]
|
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"]
|
||||||
|
|||||||
@@ -90,11 +90,12 @@ Or use Docker Compose:
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
The container runs `python -X utf8 run.py` by default. Pass additional arguments
|
The container binds to `0.0.0.0` by default so the UI is reachable from outside
|
||||||
(e.g. `--port`, `--data-dir`, `--hf-cache`) after the image name:
|
the container. Pass additional arguments (e.g. `--port`, `--host`) after the image
|
||||||
|
name:
|
||||||
|
|
||||||
```bash
|
```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:
|
Set `HF_TOKEN` for gated/private models:
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ services:
|
|||||||
- ./hf_cache:/app/hf_cache
|
- ./hf_cache:/app/hf_cache
|
||||||
- ./lenses:/app/lenses
|
- ./lenses:/app/lenses
|
||||||
environment:
|
environment:
|
||||||
|
- JWASH_HOST=0.0.0.0
|
||||||
- HF_HOME=/app/hf_cache
|
- HF_HOME=/app/hf_cache
|
||||||
- JWASH_DATA_DIR=/app/data
|
- JWASH_DATA_DIR=/app/data
|
||||||
- HF_TOKEN=${HF_TOKEN:-}
|
- HF_TOKEN=${HF_TOKEN:-}
|
||||||
|
|||||||
Reference in New Issue
Block a user