Compare commits

...
73 Commits
Author SHA1 Message Date
autonomic-bot 68dd0a0d71 chore: upgrade docspec to 1.21.11, generate RSA keys at runtime
cc-ci/testme cc-ci: success
2026-11-23 20:44:07 +00:00
Linus Gasser 7cba86f0c4 chore: publish 2.1.1+v6.1.0-1 release 2026-11-20 19:08:07 +01:00
Linus Gasser f059d56081 Updating to latest lasuite-docs frontend
Wrong semver indication - 6.1.0-1 comes BEFORE 6.1.0, according to semver
2026-11-20 19:07:40 +01:00
Linus Gasser 3e77b7d6d1 chore: publish 2.1.0+v6.1.0 release 2026-11-20 18:39:37 +01:00
Linus Gasser 1f6ada41e9 Updating with the latest images
The latest images don't have a bash/sh anymore, so it needs node to
initialise it.
2026-11-20 18:12:38 +01:00
Linus Gasser 91dd9c5389 chore: update image tags 2026-11-20 17:56:22 +01:00
Linus Gasser 7d8f0448cc Fix broken push 2026-11-20 17:55:49 +01:00
Linus Gasser 34e6c912d5 Updating valkey 2026-11-19 13:17:04 +01:00
Renovate Bot 0b6d5e76fd chore(deps): update lasuite/impress-yhub docker tag to v6.1.0 2026-11-19 12:15:26 +00:00
Renovate Bot 44053bb8de chore(deps): update lasuite/impress-y-provider docker tag to v6.1.0 2026-11-19 12:15:18 +00:00
Renovate Bot 763c0cf9f3 chore(deps): update lasuite/impress-frontend docker tag to v6.1.0 2026-11-19 12:15:11 +00:00
Renovate Bot afe36ace94 chore(deps): update lasuite/impress-backend docker tag to v6.1.0 2026-11-19 12:15:05 +00:00
Renovate Bot 0fcb71c91d chore(deps): update nginx docker tag to v1.31.9 2026-11-19 09:14:14 +00:00
Renovate Bot 8a58030a9d chore(deps): update valkey/valkey docker tag to v9.1.4 2026-11-19 00:13:51 +00:00
Linus Gasser 83770d2b8e chore: publish 2.0.0+v6.0.4 release 2026-11-12 17:59:52 +01:00
Linus Gasser e3f179686b chore: update image tags 2026-11-12 17:52:42 +01:00
Linus Gasser ce73deeaac chore: publish 1.0.1+v6.0.4 release 2026-10-27 13:57:52 +01:00
Renovate Bot d72d0a3244 chore(deps): update valkey/valkey docker tag to v8.1.11 2026-10-27 12:55:10 +00:00
Renovate Bot 14fa200e47 chore(deps): update lasuite/impress-yhub docker tag to v6.0.4 2026-10-27 12:55:00 +00:00
Renovate Bot 341a5aa6ae chore(deps): update lasuite/impress-frontend docker tag to v6.0.4 2026-10-27 12:54:36 +00:00
Renovate Bot 915b1f2430 chore(deps): update lasuite/impress-backend docker tag to v6.0.4 2026-10-27 12:54:31 +00:00
Renovate Bot cec054bef2 chore(deps): update lasuite/impress-y-provider docker tag to v6.0.4 2026-10-27 12:12:10 +00:00
Renovate Bot d1024aaf43 chore(deps): update redis docker tag to v8.10.3 2026-10-27 11:53:06 +00:00
Linus Gasser f915487f05 chore: publish 1.0.0+v6.0.3 release 2026-10-27 12:52:52 +01:00
Linus Gasser bbbd91ab92 Adapt recipe to Docs v6 (yhub collaboration server)
- the new yhub service needs new initialisation and RSA keys
- SOFT_MIGRATION on by default, add migrate_documents command
- back up the yhub database too
- document the v5 -> v6 upgrade in README and release/next

Following the [C4DT AI Policy](https://git.coopcloud.tech/c4dt/ai-policy/src/branch/main/AI-POLICY.md):

 #LLM_vibe
 #LLM_model Claude Opus 5.5

- [x] I take full responsibility for this code
- [x] I understand every line of this code
- [x] I tested this code thoroughly on my own computer / servers
- [x] None of the commit messages were created using LLMs
- [x] I will participate in any discussion on my own and will not use an LLM for the discussion
2026-10-25 16:56:42 +01:00
Renovate Bot 32cc9b0190 chore(deps): update lasuite/impress-backend docker tag to v6 2026-10-20 18:40:28 +00:00
Renovate Bot d31102d3cc chore(deps): update lasuite/impress-frontend docker tag to v6 2026-10-20 18:40:18 +00:00
Renovate Bot f7bdbe95d0 chore(deps): update lasuite/impress-y-provider docker tag to v6 2026-10-20 18:39:57 +00:00
Renovate Bot 3ed6910bf6 chore(deps): update redis docker tag to v8.10.2 2026-10-20 18:39:22 +00:00
Renovate Bot 63e58d9b4c chore(deps): update nginx docker tag to v1.31.7 2026-10-20 18:39:05 +00:00
Linus Gasser a147b01428 Define how renovate bot updates increase versions 2026-10-20 18:37:05 +00:00
Linus Gasser 8cd2f32111 Update maintainers
Move maintainers to metadata and add @ineiti
2026-10-20 16:35:38 +00:00
Linus Gasser 5d11fc091a chore: publish 0.4.4+v5.6.1 release 2026-10-20 17:04:40 +02:00
Linus Gasser e5ee8b28be Update MINIO config to v2
The previous commit forgot to update the minio-version, which makes updates fail.
2026-10-19 15:18:03 +02:00
Linus Gasser f504e6dca3 Merge pull request 'Configure Renovate' (#15) from renovate/configure into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/15
Reviewed-by: Linus Gasser <ineiti@gasser.blue>
2026-09-30 07:31:38 +00:00
Linus Gasser fe2d00ea6a Merge branch 'main' into renovate/configure 2026-09-30 07:31:27 +00:00
notplants df77ff23ba Merge pull request 'docs: add recipe maintenance policy' (#27) from maintenance-policy into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/27
2026-09-29 14:37:36 +00:00
notplants 25db1d6790 docs: add recipe maintenance policy 2026-09-29 14:35:44 +00:00
notplants 9f3d9588a2 chore: publish 0.4.3+v5.6.1 release 2026-09-29 10:04:09 -04:00
notplants 7a63b47072 Merge pull request 'Update to minio from bitnamilegacy' (#26) from c4dt/lasuite-docs:update_minio into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/26
2026-09-29 13:52:56 +00:00
Linus Gasser 4f9cb56469 Update to minio from bitnamilegacy 2026-09-29 07:41:41 +02:00
notplants bf0f3cfc29 chore: publish 0.4.2+v5.6.1 release 2026-09-15 15:12:15 -04:00
notplants 712d5b51f0 Merge pull request 'fix: pull MinIO image from Quay' (#25) from fix-minio-quay into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/25
2026-09-15 19:11:52 +00:00
notplants 7afbae3ea0 fix: pull MinIO image from Quay 2026-09-15 19:10:40 +00:00
notplants 5afdfc2762 chore: publish 0.4.1+v5.6.1 release 2026-09-15 15:02:45 -04:00
notplants 38b21f31c4 Merge pull request 'Upgrade to 5.6.1' (#24) from upgrade-1bb8213 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/24
2026-09-15 18:59:29 +00:00
autonomic-bot 71b74f5dea chore: upgrade impress to v5.6.1
cc-ci/testme cc-ci: success
2026-09-07 21:43:44 +00:00
autonomic-bot f3cb443372 chore: upgrade impress to v5.6.0, nginx to 1.31.5
cc-ci/testme cc-ci: success
2026-09-04 02:32:06 +00:00
autonomic-bot 1bb8213b37 chore: upgrade impress to v5.5.0
cc-ci/testme cc-ci: success
2026-08-28 03:17:10 +00:00
trav f47e452ca8 chore: publish 0.4.0+v5.4.1 release 2026-08-24 12:35:15 -04:00
trav c48f893bd4 Merge pull request 'Upgrade 505e53c' (#23) from upgrade-505e53c into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/23
2026-08-24 16:34:41 +00:00
autonomic-bot 1dc6544f6f chore: upgrade redis to 8.10.1, nginx to 1.31.4
cc-ci/testme cc-ci: success
2026-08-21 02:42:52 +00:00
autonomic-bot bdbefca6c6 chore: upgrade impress to v5.4.1, redis to 8.10.0, nginx to 1.31.3
cc-ci/testme cc-ci: success
2026-08-04 01:12:02 +00:00
autonomic-bot 5821060339 chore: upgrade to impress v5.4.1 + redis 8.8.1 + nginx 1.31.3 + minio 2025-09-07
cc-ci/testme cc-ci full lifecycle suite GREEN (build #1182)
2026-08-04 00:21:52 +00:00
autonomic-bot f772297f86 chore: upgrade nginx to 1.31.3
cc-ci/testme cc-ci: failure
2026-07-24 04:23:34 +00:00
autonomic-bot 7e7ba76a6b chore: upgrade impress to v5.4.1
cc-ci/testme cc-ci: failure
2026-07-13 20:32:19 +00:00
autonomic-bot 9e3f3b1351 chore: upgrade impress to v5.3.0, nginx to 1.31.2, minio to RELEASE.2025-09-07
cc-ci/testme cc-ci: success
2026-06-29 00:56:21 +00:00
autonomic-bot 505e53ccc2 chore: upgrade to v5.3.0 (impress app/backend/celery/y-provider) + nginx 1.31.2
cc-ci/testme cc-ci: success
2026-06-22 21:31:06 +00:00
trav 911c982b99 Merge pull request 'upgrade-22076ad' (#22) from upgrade-22076ad into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/22
2026-06-15 17:26:09 +00:00
autonomic-bot 8a06cfc2c9 chore: upgrade to v5.2.1
cc-ci/testme cc-ci: success
2026-06-12 03:34:05 +00:00
autonomic-bot 22076ad5d9 chore: upgrade to v5.2.0
cc-ci/testme cc-ci: success
2026-06-05 02:43:55 +00:00
notplants a8613e3d96 Merge pull request 'update pgbackup version to v4' (#21) from v4 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/21
2026-06-02 17:12:59 +00:00
trav da9a110c46 update pgbackup version to v4 2026-06-02 13:12:14 -04:00
trav d73a391225 Merge pull request 'chore: upgrade to 0.3.4+v5.1.0' (#20) from upgrade-0.3.4+v5.1.0 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/20
2026-06-02 16:52:24 +00:00
autonomic-bot 4c57b8f80d chore: upgrade to 0.3.4+v5.1.0
cc-ci/testme cc-ci: success
2026-06-02 07:23:07 +00:00
notplants 290a8ad72d Merge pull request 'chore: upgrade to 0.3.3+v5.1.0' (#19) from upgrade-0.3.3+v5.1.0 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/19
2026-05-26 16:29:42 +00:00
trav 148439f7cf chore: upgrade to 0.3.3+v5.1.0 2026-05-25 20:41:17 +01:00
notplants dd90697270 Merge pull request 'bump to 0.3.2+v5.1.0' (#18) from upgrade-0.3.2+v5.1.0 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/18
2026-05-18 18:54:53 +00:00
notplants 03db64341d bump to 0.3.2+v5.1.0
Wire up the file-upload conversion path that CONVERSION_UPLOAD_ENABLED
exposes:

- Add Y_PROVIDER_API_BASE_URL and Y_PROVIDER_API_KEY_FILE to common-env
  so the backend can call y-provider (used for .md→Yjs).
- Add DOCSPEC_API_URL to common-env and a new docspec service
  (ghcr.io/docspecio/api:3.0.1) for the .docx→BlockNote→Yjs path.

These were missing because they were dormant while
CONVERSION_UPLOAD_ENABLED defaulted to false upstream. Now that the
recipe defaults it to true (0.3.1+v5.1.0), they're required for the
upload endpoint to function.

Upstream reference:
- https://github.com/suitenumerique/docs/blob/v5.1.0/compose.yml (docspec service)
- https://github.com/suitenumerique/docs/blob/v5.1.0/env.d/development/common (DOCSPEC_API_URL, Y_PROVIDER_API_BASE_URL)
- https://github.com/docspecio/api (DocSpec source)
2026-05-18 18:50:55 +00:00
notplants f31df0e83c Merge pull request 'bump to 0.3.1+v5.1.0' (#17) from upgrade-0.3.1+v5.1.0 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/17
2026-05-18 18:29:58 +00:00
notplants 9f68524046 bump to 0.3.1+v5.1.0
Add env vars introduced upstream across v4.6 → v5.0:
- CONVERSION_UPLOAD_ENABLED (v4.8.5) — recipe override true (upstream default false)
- CONVERSION_FILE_MAX_SIZE / _EXTENSIONS_ALLOWED / _API_* (v4.5.0 source)
- DB_PSYCOPG_POOL_ENABLED (v4.8.1)
- DJANGO_EMAIL_URL_APP (v4.6.0) — recipe sets to https://${DOMAIN}
- MEDIA_AUTH_ORIGINAL_URL_HEADER (v5.0.0)

All except CONVERSION_UPLOAD_ENABLED and DJANGO_EMAIL_URL_APP use the
bare-key defer-to-upstream pattern (like existing LOGGING_LEVEL_*), so
upstream defaults apply unless the operator sets them in .env.

Document all 10 vars (commented) in .env.sample.
2026-05-18 17:42:23 +00:00
notplants 74b61b1154 Merge pull request 'bump to 0.3.0+v5.1.0' (#16) from 0.3.0+v5.1.0 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/lasuite-docs/pulls/16
2026-05-11 18:42:20 +00:00
Renovate Bot 74c06a196a Add renovate.json 2026-03-10 17:50:52 +00:00
15 changed files with 360 additions and 37 deletions
+46 -2
View File
@@ -21,14 +21,14 @@ SECRET_DJANGO_SP_VERSION=v1
SECRET_MINIO_RP_VERSION=v1
# MINIO_ROOT_USER
SECRET_MINIO_RU_VERSION=v1
# COLLABORATION_SERVER_SECRET
SECRET_COLLAB_SS_VERSION=v1
# POSTGRES_PASSWORD
SECRET_POSTGRES_P_VERSION=v1
# Y_PROVIDER_API_KEY
SECRET_Y_API_KEY_VERSION=v1
# DJANGO_HOST_EMAIL_PASSWORD
SECRET_EMAIL_PASS_VERSION=v1
# (the two RSA JWT keys are no longer secrets: the jwt-keys service generates
# them into the jwt_keys volume on first deploy — see README)
##############################################################################
# EMAIL
@@ -72,3 +72,47 @@ LOGGING_LEVEL_LOGGERS_APP=INFO
##############################################################################
# Set to false to disable automatic migrations on backend startup
# AUTO_MIGRATIONS=true
##############################################################################
# CONVERSION (file upload → Yjs via y-provider)
##############################################################################
# Allow uploading .docx/.md files for conversion to Yjs.
# Recipe sets this to true (upstream default is false).
# CONVERSION_UPLOAD_ENABLED=true
# Upstream defaults (uncomment to override):
# CONVERSION_FILE_MAX_SIZE=20971520
# CONVERSION_FILE_EXTENSIONS_ALLOWED=.docx,.md
# CONVERSION_API_ENDPOINT=convert
# CONVERSION_API_CONTENT_FIELD=content
# CONVERSION_API_TIMEOUT=30
# CONVERSION_API_SECURE=false
##############################################################################
# DATABASE CONNECTION POOL
##############################################################################
# Upstream default (uncomment to override):
# DB_PSYCOPG_POOL_ENABLED=false
##############################################################################
# EMAIL APP URL
##############################################################################
# DJANGO_EMAIL_URL_APP is set automatically in compose.yml to https://${DOMAIN}.
# Override is not exposed via .env — edit compose.yml directly if needed.
# (Upstream default falls back to Django's Site framework, not configured here.)
##############################################################################
# MEDIA AUTH HEADER
##############################################################################
# Header the backend reads for media auth subrequests.
# Upstream default matches the recipe's nginx config (X-Original-URL).
# MEDIA_AUTH_ORIGINAL_URL_HEADER=HTTP_X_ORIGINAL_URL
##############################################################################
# COLLABORATION SERVER (yhub) - SOFT MIGRATION
##############################################################################
# Since v6 the document content lives in the collaboration server, not in the
# media bucket. With SOFT_MIGRATION, a pre-v6 document is copied over the first
# time it is opened. Only set to false once
# `abra app cmd <app-name> backend migrate_documents` has covered all documents
# (or on a fresh v6 install); unmigrated documents would otherwise open empty.
# SOFT_MIGRATION=true
+30
View File
@@ -0,0 +1,30 @@
# Lasuite-Docs Recipe Maintenance
All contributions should be made via pull requests.
## Pull Requests
A pull request can be merged directly into `main` by any maintainer.
No approval is needed, but pull requests should be tested as working before merge.
## Dependency Updates
- patch updates proposed from renovate bot are merged directly -
if there is a CVE, also release a new patch version of this recipe
- minor updates proposed from renovate bot are tested by one maintainer
and merged if they don't break, then a new minor version of the recipe
is released
- major updates proposed form renovate bot are tested by two maintainers
and merged if they don't break, then a major version of the recipe is
released.
If the renovate bot PR is older than one week, one maintainer can decide
to merge it anyway.
## Become a maintainer
Everyone can apply to be a recipe maintainer:
1. Watch the repository to get updates.
2. Add yourself to the list in [README.md](./README.md) and open a pull request with the change.
3. Once the pull request is merged, you will be added to the
[La Suite maintainers team](https://git.coopcloud.tech/org/coop-cloud/teams/lasuite-maintainers).
+14
View File
@@ -4,6 +4,7 @@
<!-- metadata -->
* **Maintainer**: [@trav](https://git.coopcloud.tech/trav), [@notplants](https://git.coopcloud.tech/notplants), [@ineiti](https://git.coopcloud.tech/ineiti)
* **Category**: Apps
* **Status**: 2
* **Image**: [`lasuite/docs`](https://hub.docker.com/r/lasuite/docs), 4, upstream
@@ -26,6 +27,19 @@ You should then be able to visit the landing page of your app, but not yet to lo
* Migrations run automatically on backend startup. To trigger manually: `abra app cmd <app-name> backend migrate`
* Minio buckets are created automatically on first deploy. To manually trigger: `abra app cmd <app-name> minio minio_initialize`
## RSA keys
Since v6, the backend and the collaboration server (`yhub`) authenticate each other with signed tokens. Each needs its own RSA private key, never the same one. The recipe generates both automatically on first deploy into the `jwt_keys` volume (the `jwt-keys` service, using Node crypto) and reuses them on later deploys. They are not Swarm secrets because abra cannot generate PEM keys and Swarm secrets must exist before the stack is deployed.
## Upgrading from v5 to v6
v6 replaces the collaboration server. Document content moves from the minio bucket to the new `yhub` service, which stores it in its own `yhub` database. If you skip the migration, every existing document opens **empty**. See [UPGRADE.md](https://github.com/suitenumerique/docs/blob/main/UPGRADE.md) upstream for details.
1. The `collab_ss` secret is no longer used. The two RSA keys are generated automatically on first deploy (see "RSA keys" above).
2. Leave `SOFT_MIGRATION` at its default (`true`) and deploy. The `yhub` schema is created on startup. A document is copied to yhub the first time someone opens it.
3. Copy all remaining documents: `abra app cmd <app-name> backend migrate_documents`. You can pass arguments, e.g. `abra app cmd <app-name> backend migrate_documents -- --dry-run`. Re-run it with `--retry-failed` if some documents failed.
4. Only after that, you may set `SOFT_MIGRATION=false`. Keep the minio bucket and its object versions: they hold the document history from before v6.
## Configure Authentication
lasuite-docs **requires** an OpenID Connect (OIDC) single sign-on provider; deployment has been tested with [Keycloak](https://git.coopcloud.tech/coop-cloud/keycloak), which we recommend, or you could also try [Authentik](https://git.coopcloud.tech/coop-cloud/authentik), both of which are installable using Co-op Cloud.
-1
View File
@@ -7,7 +7,6 @@ set -e
[ -f /run/secrets/minio_ru ] && export AWS_S3_ACCESS_KEY_ID="$(cat /run/secrets/minio_ru)"
[ -f /run/secrets/django_sp ] && export DJANGO_SUPERUSER_PASSWORD="$(cat /run/secrets/django_sp)"
[ -f /run/secrets/oidc_rpcs ] && export OIDC_RP_CLIENT_SECRET="$(cat /run/secrets/oidc_rpcs)"
[ -f /run/secrets/collab_ss ] && export COLLABORATION_SERVER_SECRET="$(cat /run/secrets/collab_ss)"
[ -f /run/secrets/y_api_key ] && export Y_PROVIDER_API_KEY="$(cat /run/secrets/y_api_key)"
[ -f /run/secrets/email_pass ] && export DJANGO_EMAIL_HOST_PASSWORD="$(cat /run/secrets/email_pass)"
+12 -4
View File
@@ -1,9 +1,9 @@
# Set any config versions here
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
export ABRA_ENTRYPOINT_VERSION=v5
export NGINX_CONF_VERSION=v3
export PG_BACKUP_VERSION=v3
export MINIO_INITIALIZE_VERSION=v1
export ABRA_ENTRYPOINT_VERSION=v6
export NGINX_CONF_VERSION=v5
export PG_BACKUP_VERSION=v5
export MINIO_INITIALIZE_VERSION=v2
export MIGRATE_VERSION=v1
environment() {
@@ -18,3 +18,11 @@ migrate() {
minio_initialize() {
/minio-initialize.sh
}
# Hand all pre-v6 documents from the media bucket over to the collaboration
# server (yhub). Resumable and safe to re-run; extra args are passed through,
# e.g. --dry-run, --retry-failed, --concurrency N
migrate_documents() {
source /abra-entrypoint.sh -e
python manage.py migrate_documents "$@"
}
+174 -24
View File
@@ -54,8 +54,30 @@ x-common-env: &common-env
OPENAI_SDK_BASE_URL: https://openaiendpoint.com
OPENAI_SDK_API_KEY: password
AI_MODEL: llama
# Collaboration
COLLABORATION_API_URL: https://$DOMAIN/collaboration/api/
# Collaboration server (yhub), reached in-stack
YHUB_API_BASE_URL: http://yhub:3002
# RSA key signing the tokens the backend presents to yhub and y-provider
# (generated at runtime by the jwt-keys service, shared via the jwt_keys volume)
JWT_PRIVATE_KEY_FILE: /keys/jwt.pem
# Email app URL (used in email templates; matches recipe DOMAIN)
DJANGO_EMAIL_URL_APP: "https://${DOMAIN}"
# Conversion (file upload → Yjs via y-provider)
CONVERSION_UPLOAD_ENABLED: "${CONVERSION_UPLOAD_ENABLED:-true}"
CONVERSION_FILE_MAX_SIZE:
CONVERSION_FILE_EXTENSIONS_ALLOWED:
CONVERSION_API_ENDPOINT:
CONVERSION_API_CONTENT_FIELD:
CONVERSION_API_TIMEOUT:
CONVERSION_API_SECURE:
# Y-Provider base URL + API key (needed when CONVERSION_UPLOAD_ENABLED is true)
Y_PROVIDER_API_BASE_URL: http://y-provider:4444/api/
Y_PROVIDER_API_KEY_FILE: /run/secrets/y_api_key
# DocSpec — converts .docx → BlockNote JSON, then y-provider turns that into Yjs
DOCSPEC_API_URL: http://docspec:3000/conversion
# Database connection pool
DB_PSYCOPG_POOL_ENABLED:
# Media auth header (matches recipe nginx by default)
MEDIA_AUTH_ORIGINAL_URL_HEADER:
x-postgres-env: &postgres-env
# Postgresql db container configuration
@@ -72,11 +94,27 @@ x-postgres-env: &postgres-env
x-yprovider-env: &yprovider-env
COLLABORATION_LOGGING: "true"
# Y_PROVIDER_API_KEY supplied via secrets
COLLABORATION_API_URL: http://y-provider:4444/api/
COLLABORATION_SERVER_ORIGIN: https://${DOMAIN}
# COLLABORATION_SERVER_SECRET supplied via secrets
COLLABORATION_BACKEND_BASE_URL: https://${DOMAIN}
COLLABORATION_WS_URL: wss://${DOMAIN}/collaboration/ws/
# The last segment is YHUB_ORG (default: docs)
COLLABORATION_WS_URL: wss://${DOMAIN}/collaboration/ws/v1/docs
x-yhub-env: &yhub-env
PORT: 3002
REDIS: redis://yhub-valkey:6379
# POSTGRES is built from the postgres_p secret in the entrypoint
COLLABORATION_BACKEND_BASE_URL: https://${DOMAIN}
COLLABORATION_SERVER_ORIGIN: https://${DOMAIN}
Y_PROVIDER_API_KEY_FILE: /run/secrets/y_api_key
# (generated at runtime by the jwt-keys service, shared via the jwt_keys volume)
YHUB_JWT_PRIVATE_KEY_FILE: /keys/yhub-jwt.pem
# Seed documents from the pre-v6 media bucket the first time they are opened.
# Only turn off once `abra app cmd <app> backend migrate_documents` covered all documents.
SOFT_MIGRATION: "${SOFT_MIGRATION:-true}"
LEGACY_S3_ENDPOINT_URL: http://minio:9000
LEGACY_S3_ACCESS_KEY_ID_FILE: /run/secrets/minio_ru
LEGACY_S3_SECRET_ACCESS_KEY_FILE: /run/secrets/minio_rp
LEGACY_S3_BUCKET_NAME: docs-media-storage
x-minio-env: &minio-env
MINIO_ROOT_USER_FILE: /run/secrets/minio_ru
@@ -84,14 +122,14 @@ x-minio-env: &minio-env
services:
app:
image: lasuite/impress-frontend:v5.1.0
image: lasuite/impress-frontend:v6.1.0-1
networks:
- backend
deploy:
labels:
- "traefik.enable=false"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
- "coop-cloud.${STACK_NAME}.version=0.3.0+v5.1.0"
- "coop-cloud.${STACK_NAME}.version=2.1.1+v6.1.0-1"
user: "${DOCKER_USER:-1000}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
@@ -101,7 +139,7 @@ services:
start_period: 10s
backend:
image: lasuite/impress-backend:v5.1.0
image: lasuite/impress-backend:v6.1.0
networks:
- backend
environment:
@@ -116,7 +154,9 @@ services:
user: "${DOCKER_USER:-1000}"
command: ["gunicorn", "-c", "/usr/local/etc/gunicorn/impress.py", "impress.wsgi:application"]
entrypoint: >
sh -c "if [ \"$$AUTO_MIGRATIONS\" = \"true\" ]; then /migrate.sh; fi && exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" --
sh -c "while [ ! -r /keys/jwt.pem ]; do sleep 1; done; if [ \"$$AUTO_MIGRATIONS\" = \"true\" ]; then /migrate.sh; fi && exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" --
volumes:
- jwt_keys:/keys:ro
configs:
- source: abra_entrypoint
target: /abra-entrypoint.sh
@@ -128,7 +168,6 @@ services:
- django_sk
- django_sp
- oidc_rpcs
- collab_ss
- minio_rp
- minio_ru
- postgres_p
@@ -136,7 +175,7 @@ services:
- email_pass
celery:
image: lasuite/impress-backend:v5.1.0
image: lasuite/impress-backend:v6.1.0
networks:
- backend
healthcheck:
@@ -149,7 +188,10 @@ services:
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
environment:
<<: [*common-env, *postgres-env, *yprovider-env]
entrypoint: ["/abra-entrypoint.sh", "/usr/local/bin/entrypoint"]
entrypoint: >
sh -c "while [ ! -r /keys/jwt.pem ]; do sleep 1; done; exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" --
volumes:
- jwt_keys:/keys:ro
configs:
- source: abra_entrypoint
target: /abra-entrypoint.sh
@@ -158,15 +200,77 @@ services:
- django_sk
- django_sp
- oidc_rpcs
- collab_ss
- minio_rp
- minio_ru
- postgres_p
- y_api_key
- email_pass
# Collaboration server: serves the websocket and holds the document content
yhub:
image: lasuite/impress-yhub:v6.1.0
networks:
- backend
environment: *yhub-env
user: "${DOCKER_USER:-1000}"
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3002/collaboration/ready/v1').then(r=>process.exit(r.ok?0:1),()=>process.exit(1))"]
interval: 15s
timeout: 5s
retries: 20
start_period: 30s
# Since v6.1.0 the image is distroless (no shell), so this is plain node:
# - wait for the RSA key the jwt-keys sidecar generates into the shared volume
# - POSTGRES has no _FILE variant: build it from the postgres_p secret
# - the server never creates its schema: run the idempotent init-db
# (dist/init-db.js retries while postgres isn't up yet) before every start
# - then load sentry and the server in this process, like the image's
# `node --import ./dist/sentry.js dist/server.js`
# No `$` in here, or compose would interpolate it.
entrypoint:
- node
- -e
- >-
const fs = require('fs'), cp = require('child_process');
const key = '/keys/yhub-jwt.pem';
const hasKey = () => { try { fs.accessSync(key, fs.constants.R_OK); return true; } catch { return false; } };
const sab = new Int32Array(new SharedArrayBuffer(4));
for (let i = 0; i < 300 && !hasKey(); i++) Atomics.wait(sab, 0, 0, 1000);
if (!hasKey()) { console.error('yhub: RSA key never appeared in /keys'); process.exit(1); }
const pw = encodeURIComponent(fs.readFileSync('/run/secrets/postgres_p', 'utf8').trim());
process.env.POSTGRES = 'postgres://docs:' + pw + '@db:5432/yhub';
const r = cp.spawnSync(process.execPath, ['/app/dist/init-db.js'], { stdio: 'inherit' });
if (r.status !== 0) process.exit(r.status ?? 1);
import('/app/dist/sentry.js').then(() => import('/app/dist/server.js'));
# The image's CMD gets appended to `node -e` as extra argv and is ignored
volumes:
- jwt_keys:/keys:ro
secrets:
- postgres_p
- y_api_key
- minio_ru
- minio_rp
# Valkey of yhub: holds updates not yet persisted to postgres, so it is a store, not a cache
yhub-valkey:
image: valkey/valkey:9.2.0-alpine
command: ["valkey-server", "--maxmemory-policy", "volatile-lru", "--appendonly", "yes", "--appendfsync", "everysec"]
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 15s
timeout: 5s
retries: 3
networks:
- backend
volumes:
- yhub_valkey:/data
deploy:
labels:
backupbot.backup: "${ENABLE_BACKUPS:-true}"
# Conversion service only since v6 (no longer serves the collaboration)
y-provider:
image: lasuite/impress-y-provider:v5.1.0
image: lasuite/impress-y-provider:v6.1.0
networks:
- backend
healthcheck:
@@ -184,6 +288,52 @@ services:
secrets:
- y_api_key
docspec:
image: ghcr.io/docspec/api:1.21.11
networks:
- backend
healthcheck:
# Use 127.0.0.1 (not localhost) for this healthcheck
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/health"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
# Generates the two RSA keys the backend and yhub sign with, into a shared volume.
# They cannot be abra-generated secrets (PEM format) and Swarm secrets cannot be
# created at deploy time, so this idempotent sidecar creates them once and keeps them
# on the volume across redeploys. Both consumers wait for their file before starting.
# Uses a plain Node image (not the yhub image): yhub v6.1.0 is distroless (no shell).
jwt-keys:
image: node:22-alpine
networks:
- backend
user: "0"
volumes:
- jwt_keys:/keys
healthcheck:
test: ["CMD-SHELL", "[ -s /keys/jwt.pem ] && [ -s /keys/yhub-jwt.pem ]"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
entrypoint: ["/bin/sh", "-c"]
command:
- |
set -eu
generate() {
target="/keys/$$1"
if [ ! -s "$$target" ]; then
node -e 'const fs=require("fs");const {generateKeyPairSync}=require("crypto");const {privateKey}=generateKeyPairSync("rsa",{modulusLength:2048,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});fs.writeFileSync(process.argv[1],privateKey,{mode:0o400});' "$$target"
fi
}
generate jwt.pem
generate yhub-jwt.pem
chown -R "${DOCKER_USER:-1000}:${DOCKER_USER:-1000}" /keys
chmod 0400 /keys/jwt.pem /keys/yhub-jwt.pem
while true; do sleep 3600; done
db:
image: pgautoupgrade/pgautoupgrade:18-debian
networks:
@@ -202,7 +352,7 @@ services:
labels:
backupbot.backup: "${ENABLE_BACKUPS:-true}"
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.postgres.path: "backup.sql"
backupbot.backup.volumes.postgres.path: "backup.sql,backup-yhub.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'
configs:
- source: pg_backup
@@ -212,7 +362,7 @@ services:
- postgres_p
redis:
image: redis:8.2.6
image: redis:8.10.3
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 15s
@@ -222,7 +372,8 @@ services:
- backend
minio:
image: minio/minio:RELEASE.2025-05-24T17-08-30Z
image: bitnamilegacy/minio:2025.7.23-debian-12-r5
user: root
environment: *minio-env
healthcheck:
test: ["CMD", "mc", "ready", "local"]
@@ -231,11 +382,11 @@ services:
retries: 300
networks:
- backend
command: minio server /data
command: /opt/bitnami/scripts/minio/run.sh
entrypoint: >
sh -c "/minio-initialize.sh & exec /usr/bin/docker-entrypoint.sh \"$$@\"" --
sh -c "/minio-initialize.sh & exec /opt/bitnami/scripts/minio/entrypoint.sh \"$$@\"" --
volumes:
- minio:/data
- minio:/bitnami/minio/data
deploy:
labels:
backupbot.backup: "${ENABLE_BACKUPS:-true}"
@@ -252,7 +403,7 @@ services:
- minio_ru
web:
image: nginx:1.30.0
image: nginx:1.31.9
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8083"]
interval: 15s
@@ -288,6 +439,8 @@ networks:
volumes:
postgres:
minio:
yhub_valkey:
jwt_keys:
configs:
nginx_conf:
@@ -320,9 +473,6 @@ secrets:
postgres_p:
external: true
name: ${STACK_NAME}_postgres_p_${SECRET_POSTGRES_P_VERSION}
collab_ss:
external: true
name: ${STACK_NAME}_collab_ss_${SECRET_COLLAB_SS_VERSION}
minio_rp:
external: true
name: ${STACK_NAME}_minio_rp_${SECRET_MINIO_RP_VERSION}
+5
View File
@@ -1,6 +1,11 @@
#!/bin/sh
set -e
# Use an isolated mc config dir: the bundled Bitnami image runs its own
# internal mc client (as the "minio" user) against the default /.mc path,
# which collides with this script running as root against the same path.
export MC_CONFIG_DIR=/tmp/mc-docs-init
# Wait for minio to be ready (up to 60 seconds)
i=0
while ! mc ready local 2>/dev/null; do
+20 -5
View File
@@ -13,6 +13,12 @@ server {
# Disables server version feedback on pages and in headers
server_tokens off;
# Docker's embedded DNS. Used to resolve yhub per request (via a variable
# in proxy_pass) so nginx doesn't refuse to start while yhub isn't healthy
# yet: swarm only publishes a service's DNS name once it has a healthy task.
resolver 127.0.0.11 valid=10s ipv6=off;
set $yhub_upstream http://{{ env "STACK_NAME" }}_yhub:3002;
location @proxy_to_docs_backend {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
@@ -47,7 +53,14 @@ server {
try_files $uri @proxy_to_docs_backend;
}
# Proxy auth for collaboration server
location /external_api {
try_files $uri @proxy_to_docs_backend;
}
# Collaboration server (yhub). Only the routes below are published: it also
# serves prune, create-ydoc, reset-connections, migrate, restore-ydoc and
# reset-ydoc, which the backend calls in-stack and which must not be
# reachable from the outside.
location /collaboration/ws/ {
# Ensure WebSocket upgrade
proxy_http_version 1.1;
@@ -55,7 +68,7 @@ server {
proxy_set_header Connection "Upgrade";
# Collaboration server
proxy_pass http://y-provider:4444;
proxy_pass $yhub_upstream;
# Set appropriate timeout for WebSocket
proxy_read_timeout 86400;
@@ -67,9 +80,11 @@ server {
proxy_set_header Host $host;
}
location /collaboration/api/ {
# Collaboration server
proxy_pass http://y-provider:4444;
# Document routes (http fallback, history) and the public keys of yhub
location ~ ^/collaboration/(ydoc|activity|changeset|rollback|jwks)/ {
proxy_pass $yhub_upstream;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Origin $http_origin;
proxy_set_header Host $host;
}
+12
View File
@@ -3,10 +3,16 @@
set -e
BACKUP_FILE='/var/lib/postgresql/data/pgdata/backup.sql'
# database of the collaboration server (yhub), since v6
YHUB_DB='yhub'
YHUB_BACKUP_FILE='/var/lib/postgresql/data/pgdata/backup-yhub.sql'
function backup {
export PGPASSWORD=$(cat $POSTGRES_PASSWORD_FILE)
pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > $BACKUP_FILE
if psql -U ${POSTGRES_USER} -d postgres -tAc "SELECT 1 FROM pg_database WHERE datname='${YHUB_DB}'" | grep -q 1; then
pg_dump -U ${POSTGRES_USER} ${YHUB_DB} > $YHUB_BACKUP_FILE
fi
}
function restore {
@@ -27,6 +33,12 @@ function restore {
createdb -U ${POSTGRES_USER} ${POSTGRES_DB}
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -1 -f $BACKUP_FILE
if [ -f $YHUB_BACKUP_FILE ]; then
psql -U ${POSTGRES_USER} -d postgres -c "DROP DATABASE IF EXISTS ${YHUB_DB} WITH (FORCE);"
createdb -U ${POSTGRES_USER} ${YHUB_DB}
psql -U ${POSTGRES_USER} -d ${YHUB_DB} -1 -f $YHUB_BACKUP_FILE
fi
trap - EXIT INT TERM
restore_config
}
+22
View File
@@ -0,0 +1,22 @@
⚠️ Major upgrade to Docs v6: the collaboration server is replaced by the new `yhub`
service, and existing documents have to be migrated to it, or they open EMPTY.
Before deploying, generate and insert two RSA keys:
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out jwt.pem
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out yhub-jwt.pem
abra app secret insert <app-name> jwt_pk v1 jwt.pem -f
abra app secret insert <app-name> yhub_jwt_pk v1 yhub-jwt.pem -f
and add to your app config:
SECRET_JWT_PK_VERSION=v1 # generate=false
SECRET_YHUB_JWT_PK_VERSION=v1 # generate=false
`SECRET_COLLAB_SS_VERSION` and the `collab_ss` secret are no longer used.
After deploying (SOFT_MIGRATION is on by default), migrate all documents:
abra app cmd <app-name> backend migrate_documents
Only then may you set SOFT_MIGRATION=false. See the README for details.
+1
View File
@@ -0,0 +1 @@
Upgrade valkey to latest version
+1
View File
@@ -0,0 +1 @@
Latest images need different handling, but you should not need to change anything!
+1
View File
@@ -0,0 +1 @@
Patches nginx image
+15
View File
@@ -0,0 +1,15 @@
Make v6.1.0 deployable without manual keys; docspec 1.21.11.
- Docspec moves to the Rust `ghcr.io/docspec/api:1.21.11` (port 3000), which
Docs >= 5.7 expects; the archived Elixir `ghcr.io/docspecio/api` (port 4000)
is removed. Changelog: https://github.com/docspec/docspec/releases
(1.21.4 -> 1.21.11 is within-major, no breaking changes).
- The two RSA JWT keys (backend <-> yhub) are now generated at runtime by a
`jwt-keys` sidecar (`node:22-alpine`) into the `jwt_keys` volume; the backend,
celery and yhub wait for their file. `SECRET_JWT_PK_VERSION` /
`SECRET_YHUB_JWT_PK_VERSION` are gone -- fresh installs deploy without manual
`abra app secret insert` of PEMs, and upgrades regenerate transparently.
- The distroless yhub `init-db` entrypoint and valkey 9.2.0 are unchanged from
upstream main.
Recommended release: `abra recipe release lasuite-docs -z`
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}