Compare commits
24
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee1a22cbe9 | ||
|
|
68ece4222e | ||
|
|
7cba86f0c4 | ||
|
|
f059d56081 | ||
|
|
3e77b7d6d1 | ||
|
|
1f6ada41e9 | ||
|
|
91dd9c5389 | ||
|
|
7d8f0448cc | ||
|
|
34e6c912d5 | ||
|
|
0b6d5e76fd | ||
|
|
44053bb8de | ||
|
|
763c0cf9f3 | ||
|
|
afe36ace94 | ||
|
|
0fcb71c91d | ||
|
|
8a58030a9d | ||
|
|
83770d2b8e | ||
|
|
e3f179686b | ||
|
|
ce73deeaac | ||
|
|
d72d0a3244 | ||
|
|
14fa200e47 | ||
|
|
341a5aa6ae | ||
|
|
915b1f2430 | ||
|
|
cec054bef2 | ||
|
|
d1024aaf43 |
@@ -1,7 +1,7 @@
|
|||||||
# Set any config versions here
|
# Set any config versions here
|
||||||
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
||||||
export ABRA_ENTRYPOINT_VERSION=v6
|
export ABRA_ENTRYPOINT_VERSION=v6
|
||||||
export NGINX_CONF_VERSION=v4
|
export NGINX_CONF_VERSION=v5
|
||||||
export PG_BACKUP_VERSION=v5
|
export PG_BACKUP_VERSION=v5
|
||||||
export MINIO_INITIALIZE_VERSION=v2
|
export MINIO_INITIALIZE_VERSION=v2
|
||||||
export MIGRATE_VERSION=v1
|
export MIGRATE_VERSION=v1
|
||||||
|
|||||||
+28
-14
@@ -120,14 +120,14 @@ x-minio-env: &minio-env
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: lasuite/impress-frontend:v6.0.3
|
image: lasuite/impress-frontend:v6.1.0-1
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=false"
|
- "traefik.enable=false"
|
||||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+v6.0.3"
|
- "coop-cloud.${STACK_NAME}.version=2.1.2+v6.1.0-1"
|
||||||
user: "${DOCKER_USER:-1000}"
|
user: "${DOCKER_USER:-1000}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
||||||
@@ -137,7 +137,7 @@ services:
|
|||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: lasuite/impress-backend:v6.0.3
|
image: lasuite/impress-backend:v6.1.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment:
|
environment:
|
||||||
@@ -172,7 +172,7 @@ services:
|
|||||||
- jwt_pk
|
- jwt_pk
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
image: lasuite/impress-backend:v6.0.3
|
image: lasuite/impress-backend:v6.1.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -203,7 +203,7 @@ services:
|
|||||||
|
|
||||||
# Collaboration server: serves the websocket and holds the document content
|
# Collaboration server: serves the websocket and holds the document content
|
||||||
yhub:
|
yhub:
|
||||||
image: lasuite/impress-yhub:v6.0.3
|
image: lasuite/impress-yhub:v6.1.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment: *yhub-env
|
environment: *yhub-env
|
||||||
@@ -214,10 +214,24 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
# The server never creates its schema: run the idempotent init-db before every start
|
# Since v6.1.0 the image is distroless (no shell), so this is plain node:
|
||||||
entrypoint: >
|
# - POSTGRES has no _FILE variant: build it from the postgres_p secret
|
||||||
sh -c "export POSTGRES=\"postgres://docs:$$(node -e 'process.stdout.write(encodeURIComponent(require(\"fs\").readFileSync(\"/run/secrets/postgres_p\",\"utf8\").trim()))')@db:5432/yhub\" && node node_modules/@y/hub/bin/init-db.js && exec /usr/local/bin/entrypoint \"$$@\"" --
|
# - the server never creates its schema: run the idempotent init-db
|
||||||
command: ["node", "--import", "./dist/sentry.js", "dist/server.js"]
|
# (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 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
|
||||||
secrets:
|
secrets:
|
||||||
- postgres_p
|
- postgres_p
|
||||||
- y_api_key
|
- y_api_key
|
||||||
@@ -227,7 +241,7 @@ services:
|
|||||||
|
|
||||||
# Valkey of yhub: holds updates not yet persisted to postgres, so it is a store, not a cache
|
# Valkey of yhub: holds updates not yet persisted to postgres, so it is a store, not a cache
|
||||||
yhub-valkey:
|
yhub-valkey:
|
||||||
image: valkey/valkey:8.1.10-alpine
|
image: valkey/valkey:9.2.0-alpine
|
||||||
command: ["valkey-server", "--maxmemory-policy", "volatile-lru", "--appendonly", "yes", "--appendfsync", "everysec"]
|
command: ["valkey-server", "--maxmemory-policy", "volatile-lru", "--appendonly", "yes", "--appendfsync", "everysec"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "valkey-cli", "ping"]
|
test: ["CMD", "valkey-cli", "ping"]
|
||||||
@@ -244,7 +258,7 @@ services:
|
|||||||
|
|
||||||
# Conversion service only since v6 (no longer serves the collaboration)
|
# Conversion service only since v6 (no longer serves the collaboration)
|
||||||
y-provider:
|
y-provider:
|
||||||
image: lasuite/impress-y-provider:v6.0.3
|
image: lasuite/impress-y-provider:v6.1.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -302,7 +316,7 @@ services:
|
|||||||
- postgres_p
|
- postgres_p
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:8.10.2
|
image: redis:8.12.0
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
@@ -343,7 +357,7 @@ services:
|
|||||||
- minio_ru
|
- minio_ru
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: nginx:1.31.8
|
image: nginx:1.31.10
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8083"]
|
test: ["CMD", "curl", "-f", "http://localhost:8083"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
@@ -429,4 +443,4 @@ secrets:
|
|||||||
name: ${STACK_NAME}_y_api_key_${SECRET_Y_API_KEY_VERSION}
|
name: ${STACK_NAME}_y_api_key_${SECRET_Y_API_KEY_VERSION}
|
||||||
email_pass:
|
email_pass:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_email_pass_${SECRET_EMAIL_PASS_VERSION}
|
name: ${STACK_NAME}_email_pass_${SECRET_EMAIL_PASS_VERSION}
|
||||||
|
|||||||
+8
-2
@@ -13,6 +13,12 @@ server {
|
|||||||
# Disables server version feedback on pages and in headers
|
# Disables server version feedback on pages and in headers
|
||||||
server_tokens off;
|
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 {
|
location @proxy_to_docs_backend {
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
@@ -62,7 +68,7 @@ server {
|
|||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
|
|
||||||
# Collaboration server
|
# Collaboration server
|
||||||
proxy_pass http://{{ env "STACK_NAME" }}_yhub:3002;
|
proxy_pass $yhub_upstream;
|
||||||
|
|
||||||
# Set appropriate timeout for WebSocket
|
# Set appropriate timeout for WebSocket
|
||||||
proxy_read_timeout 86400;
|
proxy_read_timeout 86400;
|
||||||
@@ -76,7 +82,7 @@ server {
|
|||||||
|
|
||||||
# Document routes (http fallback, history) and the public keys of yhub
|
# Document routes (http fallback, history) and the public keys of yhub
|
||||||
location ~ ^/collaboration/(ydoc|activity|changeset|rollback|jwks)/ {
|
location ~ ^/collaboration/(ydoc|activity|changeset|rollback|jwks)/ {
|
||||||
proxy_pass http://{{ env "STACK_NAME" }}_yhub:3002;
|
proxy_pass $yhub_upstream;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_set_header Origin $http_origin;
|
proxy_set_header Origin $http_origin;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Upgrade valkey to latest version
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Latest images need different handling, but you should not need to change anything!
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Patches nginx image
|
||||||
Reference in New Issue
Block a user