Simplify compose files and .env.example
Folders, port and image are written straight into compose.yaml; the KANAME_DATA_DIR, KANAME_MODELS_DIR, WEB_PORT and KANAME_IMAGE variables are gone. .env.example is down to the settings people actually set. README and CHANGELOG updated accordingly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5bc1ad1395
commit
15d8ae155e
5 files changed
+92
-109
No files matched your search
@@ -42,9 +42,21 @@ curl -fsSLo .env https://git.linxweiler.xyz/pascallinxweiler/Kaname/raw/branch/m
|
||||
restrict access by group.
|
||||
|
||||
**3. Fill in `.env`:** `AUTH_URL` (the address you open in the browser), `OIDC_ISSUER`,
|
||||
`OIDC_CLIENT_ID`, `OIDC_CLIENT_SECRET`, and ideally a read-only `HF_TOKEN`. Everything else has
|
||||
defaults. Models go to `./models` and the database to `./data` next to the compose file; point
|
||||
`KANAME_MODELS_DIR` at another folder (e.g. a NAS share mounted on the host) if you like.
|
||||
`OIDC_CLIENT_ID`, `OIDC_CLIENT_SECRET`, and ideally a read-only `HF_TOKEN`. That's all; the rest
|
||||
has defaults:
|
||||
|
||||
```env
|
||||
HF_TOKEN=hf_...
|
||||
AUTH_URL=http://192.168.1.10:3000
|
||||
OIDC_ISSUER=https://auth.example.com
|
||||
OIDC_CLIENT_ID=...
|
||||
OIDC_CLIENT_SECRET=...
|
||||
OIDC_ALLOWED_GROUPS=admin
|
||||
```
|
||||
|
||||
The database goes to `./data` and models to `./models` next to the compose file. To keep models
|
||||
somewhere else (e.g. a NAS share mounted on the host), change the worker's `./models:/models` line
|
||||
in `compose.yaml`, e.g. to `/mnt/models:/models`. The port is the `"3000:3000"` line.
|
||||
|
||||
**4. Start**
|
||||
|
||||
@@ -56,11 +68,11 @@ Open your `AUTH_URL`, sign in, click **Add model**. That's it.
|
||||
|
||||
Kaname creates and takes over `./data` itself, and an empty models folder too. It runs as uid/gid
|
||||
1000 by default; if your models folder already holds files that belong to another user (common for
|
||||
NAS shares), set `PUID`/`PGID` in `.env` to that owner (`ls -ln /path/to/models`). Kaname never
|
||||
NAS shares), add `PUID`/`PGID` to `.env` for that owner (`ls -ln /path/to/models`). Kaname never
|
||||
changes the ownership of a models folder that has files in it.
|
||||
|
||||
**Updating:** `docker compose pull && docker compose up -d`. To stay on a version, set e.g.
|
||||
`KANAME_VERSION=0.16.0` in `.env`. The running version is shown next to the app name. Read the
|
||||
`KANAME_VERSION=0.22.0` in `.env`. The running version is shown next to the app name. Read the
|
||||
[changelog](CHANGELOG.md) before jumping minor versions: it says when the compose file changed.
|
||||
|
||||
### The image
|
||||
@@ -70,8 +82,8 @@ changes the ownership of a models folder that has files in it.
|
||||
| Tag | What it is |
|
||||
| --- | --- |
|
||||
| `latest` | the newest release |
|
||||
| `0.16` | the newest 0.16.x release |
|
||||
| `0.16.0` | exactly that release |
|
||||
| `0.22` | the newest 0.22.x release |
|
||||
| `0.22.0` | exactly that release |
|
||||
|
||||
It is built for x86-64 (`linux/amd64`). One image serves all three services (`web`, `worker`,
|
||||
`sandbox`); the compose file picks the role. To build it yourself (e.g. for ARM) from this
|
||||
@@ -82,7 +94,7 @@ git clone https://git.linxweiler.xyz/pascallinxweiler/Kaname.git && cd Kaname
|
||||
docker build -t kaname:mine --build-arg APP_VERSION=$(git describe --tags) .
|
||||
```
|
||||
|
||||
and set `KANAME_IMAGE=kaname` and `KANAME_VERSION=mine` in `.env`.
|
||||
and change the three `image:` lines in `compose.yaml` to `kaname:mine`.
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
Reference in new issue
Block a user