Deploy the stack from the repo's compose.yaml via Gitea Actions
- deploy.yml gets a deploy job after the build: pull, compose up on Unraid through the runner's Docker socket, then a health gate on eb-blazor /health from inside proxynet; docs-only pushes trigger nothing, manual runs allowed - STRATO_DYNDNS_PASSWORD comes from a Gitea secret instead of the Compose Manager env file - restart: always, because Unraid stops containers explicitly on shutdown and unless-stopped would leave the stack down after a reboot; the dev overlay turns it off - Docs describe the automatic rollout and the one-time switch away from the Compose Manager stack Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4968b62f06
commit
05b1666f81
5 files changed
+152
-99
No files matched your search
@@ -10,7 +10,7 @@ What runs on the Unraid host and how the website stack fits in. This is the
|
||||
| LAN IP | `192.168.1.14` |
|
||||
| Web UI | `https://unraid.server:44302` |
|
||||
| Version | Unraid OS 7.0.1 |
|
||||
| Stack management | Compose Manager plugin, stack `elternbeirat` |
|
||||
| Stack management | Gitea Actions (`.gitea/workflows/deploy.yml`), no Compose Manager |
|
||||
| Docker network for NPM | `proxynet` (created with `docker network create proxynet`) |
|
||||
|
||||
**Settings → Docker → Advanced View → Preserve user defined networks: Yes.**
|
||||
@@ -19,17 +19,17 @@ attached to it fails to start.
|
||||
|
||||
## Website stack
|
||||
|
||||
The stack is created in the Compose Manager under the name `elternbeirat`. Its
|
||||
compose content is a copy of `compose.yaml` **without the comments**, pasted
|
||||
into the stack's config in the Unraid UI.
|
||||
The stack is deployed by `.gitea/workflows/deploy.yml` as project `eb-stack`,
|
||||
straight from the repo's `compose.yaml` (`deployment.md`). It is **not** a Compose
|
||||
Manager stack: there is no copy of the compose file on the server. It shows up
|
||||
on the Docker tab like any other container.
|
||||
|
||||
> **The project name comes from the stack folder, not from `name:`.** The
|
||||
> Compose Manager starts the stack with `-p elternbeirat`, which overrides
|
||||
> `name: eb-stack`. Renaming the stack in the UI does not change it. That is why
|
||||
> `compose.yaml` gives the stack's network the fixed name `eb-internal` instead of
|
||||
> the derived `elternbeirat_default`. Changing a network name needs **Compose Down**
|
||||
> and then **Compose Up**; a plain Up fails because the existing containers still
|
||||
> point at the old network.
|
||||
The `Gitea-Runner` container runs the deploy. It has `/var/run/docker.sock` mounted,
|
||||
so the workflow's `docker compose` talks to the Unraid daemon directly.
|
||||
|
||||
> **Network names.** The stack's own network has the fixed name `eb-internal`.
|
||||
> Changing a network name needs `docker compose down` and then `up`; a plain `up`
|
||||
> fails because the existing containers still point at the old network.
|
||||
|
||||
| Container | Network | Container port | Host port |
|
||||
|---|---|---|---|
|
||||
|
||||
Reference in new issue
Block a user