diff --git a/compose.yml b/compose.yml index cd894ef..21879b6 100644 --- a/compose.yml +++ b/compose.yml @@ -66,6 +66,11 @@ x-common-env: &common-env 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:4000/conversion # Database connection pool DB_PSYCOPG_POOL_ENABLED: # Media auth header (matches recipe nginx by default) @@ -105,7 +110,7 @@ services: labels: - "traefik.enable=false" - "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}" - - "coop-cloud.${STACK_NAME}.version=0.3.1+v5.1.0" + - "coop-cloud.${STACK_NAME}.version=0.3.2+v5.1.0" user: "${DOCKER_USER:-1000}" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080"] @@ -198,6 +203,18 @@ services: secrets: - y_api_key + docspec: + image: ghcr.io/docspecio/api:3.0.1 + networks: + - backend + healthcheck: + # Use 127.0.0.1, which is required instead of localhost for this healtcheck because of elixir/busybox bindings + test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:4000/health"] + interval: 15s + timeout: 5s + retries: 3 + start_period: 10s + db: image: pgautoupgrade/pgautoupgrade:18-debian networks: