Updated docker-compose to use environmental variables instead
CI / test (push) Successful in 56s

This commit is contained in:
IxianPixel committed 2026-11-06 15:25:41 +00:00
1 parent 577715bb40
commit 35a26a285d
3 files changed
+56 -13

No files matched your search

+19 -5
View File
@@ -50,11 +50,22 @@ cargo run -p jm-server --example demo
Install one agent per server. **Mount media at the same paths as the Jellyfin
container**, so the paths Jellyfin reports are the paths jellymove sees.
With Docker, copy [deploy/docker-compose.yml](deploy/docker-compose.yml),
fill in the `environment:` section, fix the volumes and `user:`, then:
```sh
cp config.example.toml jellymove.toml # edit: node_name, jellyfin.api_key, peer.url, peer.token
docker compose -f deploy/docker-compose.yml up -d
mkdir jellymove-data && sudo chown 1000:1000 jellymove-data # same IDs as user:
docker compose run --rm jellymove check-config # prints the settings, secrets hidden
docker compose up -d
```
Every setting in [config.example.toml](config.example.toml) can be set as
`JELLYMOVE_<KEY>`, with `__` between a section and its key
(`[peer] token` → `JELLYMOVE_PEER__TOKEN`). There's no config file in this
setup, so the "config file not found; using environment only" warning at
start-up is expected. If you'd rather use a file, mount it at
`/config/jellymove.toml`. Environment variables still override it.
Each release publishes an image (x86_64) to the Gitea container registry:
`git.malgra.com/ixianpixel/jellymove:<version>`, and `:latest` for anything
that isn't a pre-release. It's the same static binary as the systemd tarball,
@@ -77,7 +88,8 @@ To upgrade, run `docker compose pull && docker compose up -d`.
the roadmap.
- Run the container as the same user as Jellyfin (`user: "1000:1000"`) so
moved files keep the right ownership.
- Set a UI password (`[ui]`) unless the port is only reachable privately.
- Set a UI password (`[ui]`, or `JELLYMOVE_UI__USERNAME`/`__PASSWORD`)
unless the port is only reachable privately.
- The **Status** tab checks that every library folder is visible and writable.
### Without Docker (systemd)
@@ -117,8 +129,10 @@ git tag v0.1.1 && git push origin v0.1.1
The workflow runs the tests, builds the UI and binary, attaches the tarball
and its `.sha256` to a Gitea release for that tag, then pushes the Docker
image. It builds the image with `crane`, so the runner needs no Docker
socket. It pushes with the workflow's own token; if Gitea refuses that, add
`REGISTRY_USER` and `REGISTRY_TOKEN` (`write:package`) secrets. The release notes
socket. Gitea won't let the workflow's own token push packages, so the repo
needs two Actions secrets: `REGISTRY_USER` (your Gitea username) and
`REGISTRY_TOKEN` (a personal access token with only package read and write).
The workflow stops straight away if either is missing. The release notes
are that version's section of `CHANGELOG.md`; the workflow stops straight
away if there isn't one. Re-running it replaces the files and refreshes the
notes. Tags with a `-` (`v0.2.0-rc1`) are marked pre-release.