docs: run Collabora Online (CODE) in the docker-compose example#1570
Open
DeepDiver1975 wants to merge 2 commits into
Open
docs: run Collabora Online (CODE) in the docker-compose example#1570DeepDiver1975 wants to merge 2 commits into
DeepDiver1975 wants to merge 2 commits into
Conversation
Extend the Server v11 docker-compose example to start a Collabora Online Development Edition (CODE) container so documents can be edited in the browser, wired to ownCloud end-to-end. Because the Collabora editor is embedded via an iframe and a WebSocket, both ownCloud and Collabora must be served over HTTPS on their own hostnames. A Traefik reverse proxy is added to terminate TLS (Let's Encrypt) and route the two domains; the ownCloud service moves from a published port to proxy labels. The page gains a TLS/two-host explanation, an expanded .env settings table, the collabora/proxy containers in the `docker compose ps` output, and an "Enabling Collabora Online (CODE)" section covering the richdocuments app and `wopi_url` occ wiring. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
…arness Security review of the internet-facing compose example surfaced several remotely exploitable defaults now that it is framed as a production setup: - Remove the published host ports from MariaDB (3306) and Redis (6379); they are reached only over a new internal "backend" network. An exposed, weakly-authenticated database and an unauthenticated Redis on a public host were directly exploitable. - Split the topology into "frontend" (proxy, ownCloud, Collabora) and "backend" (ownCloud, MariaDB, Redis) networks so the edge proxy and Collabora cannot address the data tier. - Restrict the Collabora CODE admin console (/browser/dist/admincontrol, /cool/adminws) with a higher-priority Traefik router guarded by an ipallowlist middleware, instead of exposing it publicly with admin/admin. - Add an HSTS headers middleware on the ownCloud router only (a framing policy would break the embedded editor iframe). - Move all credentials to the .env file with CHANGE_ME_* placeholders, define the previously-undefined ADMIN_* and DB password variables, and use distinct root vs. app database passwords. Document the residual caveats (change credentials, keep the data tier private, never expose the admin console, the Docker-socket-as-root trade-off, pin image versions) next to the compose block, and correct the "docker compose ps" note. Add a QA harness under tests/docker-compose/ that boots the shipped example (via a self-signed-TLS override + runnable test env) and smoke-tests it: status.php reports installed, Collabora serves WOPI discovery, and 3306/6379 are confirmed closed. Wire it up as "npm run test:compose" and a paths-filtered GitHub Actions workflow, and add the docker ecosystem to Dependabot. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Member
Author
|
Follow-up QA commit ( Security hardening of the compose example
Local test harness (
CI + Dependabot
Note: the compose image tags are |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the Server v11 docker-compose example so it also starts a Collabora Online Development Edition (CODE) container, wired to ownCloud end-to-end. Previously the example ran only
owncloud/server+mariadb+redisover plain HTTP.Because the Collabora editor is embedded via an iframe and a WebSocket, both ownCloud and Collabora must be served over HTTPS on their own hostnames — browsers block the mixed HTTP/HTTPS content a plain-HTTP setup produces. A Traefik reverse proxy is therefore added to terminate TLS (Let's Encrypt), redirect HTTP→HTTPS, and route the two domains; the
owncloudservice moves from a published port to proxy labels.Changes
docker-compose.yml— new always-oncollabora(collabora/code, 9980) andproxy(Traefik) services; ownCloud exposed via Traefik labels; newacmevolume for certificates.dot.env— real hostnames instead oflocalhost; newCOLLABORA_DOMAIN,OWNCLOUD_DOMAIN_REGEX,COLLABORA_IMAGE, Collabora admin creds,TRAEFIK_IMAGE,LETSENCRYPT_EMAIL; dropped obsoleteHTTP_PORT.installing_with_docker.adoc— TLS/two-host explanation, expanded.envsettings table, updateddocker compose psoutput (collabora + proxy), and a new "Enabling Collabora Online (CODE)" section coveringapp:enable richdocumentsandconfig:app:set richdocuments wopi_url, linking to the existing Collabora / occ pages.Notes
richdocumentsapp (what the repo documents today); the repo's own note flags its OC11 availability as "under review". Thecollaboracontainer itself is edition-independent.Verification
docker compose configvalidates the file.wopi_urlcommand, with no unresolved AsciiDoc attribute tokens.🤖 Generated with Claude Code