Slim down server compose: entrypoint roles, self-migrating image
- docker-entrypoint.sh: `web` (default) or `worker`; both apply pending migrations under a flock on /data, so no start-order dependency - docker-healthcheck.sh baked into the image for both roles - deploy/compose.yaml reduced to image, role, env file, volumes, port - dist/migrate.mjs bundled alongside the worker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
30b01d7bca
commit
fbcdcf2e2d
8 files changed
+65
-72
No files matched your search
+4
-1
@@ -10,7 +10,10 @@ step 1 (Hugging Face downloader) is released as a minor version.
|
||||
|
||||
- Release pipeline (`.gitea/workflows/release.yaml`): a `vX.Y.Z` tag runs checks, pushes the Docker
|
||||
image to the Gitea registry (`X.Y.Z`, `X.Y`, `latest`) and creates a release from this changelog.
|
||||
- `deploy/compose.yaml` for the server, using the released image (`KANAME_VERSION` to pin).
|
||||
- `deploy/compose.yaml` for the server, using the released image (`KANAME_VERSION` to pin). About
|
||||
20 lines: the image now has an entrypoint with roles (`web`/`worker`), runs migrations itself
|
||||
under a file lock (no start-order dependency between the services) and has a built-in
|
||||
healthcheck.
|
||||
- The app version is shown next to the app name (`APP_VERSION`, set at image build time).
|
||||
|
||||
### Changed
|
||||
|
||||
Reference in new issue
Block a user