Repository navigation
Cozy: new service - #386
Open
jackspiering wants to merge 2 commits into
Open
jackspiering wants to merge 2 commits into
jackspiering wants to merge 2 commits into
Conversation
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.
Description
Adds Cozy (now Twake Workplace) as a new service:
cozy-stackwith a CouchDB database.cozy-stackserves every app on its own host name (<instance>-<app>.<domain>in theflatlayout), and Tailscale Serve publishes one name per device. The stack therefore runs one extra Tailscale sidecar per app (home,settings,drive) next to the main one. They forward tocozy-stackin the network of the main sidecar, and Serve keeps theHostheader, whichcozy-stackuses to pick the app. The README lists this and the other differences under "Deviations from the standard setup", and explains how to add another app.Related Issues
Verification
Run from a scratch copy outside the repository, with a reusable test key and a marked
SERVICE:linting.ymlpins) on the whole repository: no issues.git diff --check origin/main: clean.curl /status) and CouchDB (curl /_up) health commands were run withdocker execand succeeded.--resolve: the root device returns200on/status, and thehome,settings, anddrivedevices each reachcozy-stackwith their own certificate (302to the instance). TheHostheader reachescozy-stackunchanged./auth/passphraseon the root host.201, then200).cozy-stack apps install notesfrom "Configuration" installed the app.docker compose downandup -dwithout-v. The file was still readable, and the admin passphrase was not generated again.tailscale-notesblock passesdocker compose config.Not tested:
notesblock only passeddocker compose config).Checklist
Additional Context
SERVICEmust not contain a hyphen, becausecozy-stackjoins the instance and app names with one. The README and.envsay so.cozy/cozy-stack:latest, as upstream's own Compose file does, and CouchDB is pinned to3.3.