Use github packages
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled
This commit is contained in:
parent
7776333168
commit
991304d134
2 changed files with 12 additions and 12 deletions
11
.github/workflows/docker-publish.yml
vendored
11
.github/workflows/docker-publish.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
|||
- 'v*.*.*'
|
||||
|
||||
env:
|
||||
REGISTRY: docker.io
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: richardr1126/openreader-webui
|
||||
|
||||
jobs:
|
||||
|
|
@ -26,11 +26,12 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata for Docker
|
||||
id: meta
|
||||
|
|
@ -50,4 +51,4 @@ jobs:
|
|||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
cache-to: type=gha,mode=max
|
||||
13
README.md
13
README.md
|
|
@ -5,9 +5,8 @@
|
|||
[](../../commits)
|
||||
[](../../releases)
|
||||
|
||||
[](https://hub.docker.com/r/richardr1126/openreader-webui)
|
||||
[](https://hub.docker.com/r/richardr1126/openreader-webui/tags)
|
||||
[](https://hub.docker.com/r/richardr1126/openreader-webui)
|
||||
[](https://github.com/richardr1126/OpenReader-WebUI/pkgs/container/openreader-webui)
|
||||
[](https://github.com/richardr1126/OpenReader-WebUI/pkgs/container/openreader-webui)
|
||||
|
||||
|
||||
# OpenReader WebUI 📄🔊
|
||||
|
|
@ -42,7 +41,7 @@ https://github.com/user-attachments/assets/262b9a01-c608-4fee-893c-9461dd48c99b
|
|||
docker run --name openreader-webui \
|
||||
-p 3003:3003 \
|
||||
-v openreader_docstore:/app/docstore \
|
||||
richardr1126/openreader-webui:latest
|
||||
ghcr.io/openreader-webui:latest
|
||||
```
|
||||
|
||||
(Optionally): Set the TTS `API_BASE` URL and/or `API_KEY` to be default for all devices
|
||||
|
|
@ -51,7 +50,7 @@ docker run --name openreader-webui \
|
|||
-e API_BASE=http://host.docker.internal:8880/v1 \
|
||||
-p 3003:3003 \
|
||||
-v openreader_docstore:/app/docstore \
|
||||
richardr1126/openreader-webui:latest
|
||||
ghcr.io/openreader-webui:latest
|
||||
```
|
||||
|
||||
> Requesting audio from the TTS API happens on the Next.js server not the client. So the base URL for the TTS API should be accessible and relative to the Next.js server. If it is in a Docker you may need to use `host.docker.internal` to access the host machine, instead of `localhost`.
|
||||
|
|
@ -63,7 +62,7 @@ Visit [http://localhost:3003](http://localhost:3003) to run the app and set your
|
|||
### ⬆️ Update Docker Image
|
||||
```bash
|
||||
docker stop openreader-webui && docker rm openreader-webui
|
||||
docker pull richardr1126/openreader-webui:latest
|
||||
docker pull ghcr.io/openreader-webui:latest
|
||||
```
|
||||
|
||||
### Adding to a Docker Compose (i.e. with open-webui or Kokoro-FastAPI)
|
||||
|
|
@ -75,7 +74,7 @@ volumes:
|
|||
services:
|
||||
openreader-webui:
|
||||
container_name: openreader-webui
|
||||
image: richardr1126/openreader-webui:latest
|
||||
image: ghcr.io/openreader-webui:latest
|
||||
environment:
|
||||
- API_BASE=http://host.docker.internal:8880/v1
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Reference in a new issue