Write your client's website copy, get it signed off, and keep the project beside it. Self-hosted.
5.2K
Write your client's website copy, get it signed off, and keep the tasks and files next to it.
Self-hosted, one container, one file to back up.
A galley proof is the first typeset pull of a page, laid out so the words can be checked before anything goes to print. Galley does that for a website: the copy is written page by page and section by section, it moves from draft to in review to approved, and the client signs it off through a link — no account, nothing to install.
Website projects rarely stall on the build. They stall waiting for the words, the logo and a decision. So the client's side of the link is not read-only: they can approve, suggest their own wording, comment, send files in, and write the sections you hand to them, and once a week they get a note saying what changed and what is still waiting on them.
The rest of the project lives in the same place — tasks, a calendar, the suppliers you book and the files you collect — because it is the same project. It is built for the person who runs the work: a web designer with six client sites on the go, a studio lead, someone organising an event. One screen per project, no seats to buy, no data leaving your server.
mkdir galley && cd galley
curl -O https://raw.githubusercontent.com/kevincardwell/galley/main/compose.yml
docker compose up -d
Open http://localhost:3000, create the admin account, and tick the box to load a worked example so nothing starts empty.
Open a project and you can see where it has got to: what is overdue, how much of the copy is signed off, how many files there are, and what happened recently.
One link, no account, nothing to install. The top of it lists what is waiting on them; they give their name once.
Pages and sections, each with its own draft, in review and approved state. Several people can write in the same section at once and see each other's cursors. Every save is kept, so you can compare any version with a word-level diff and put it back. One click copies clean Markdown or HTML for whatever the site is built in.
Connect a project to the site's git repository (GitHub or any https host, public or private) and the Site tab shows a live preview of it. Click any heading or paragraph in the preview to retype it; open Code for an editor with the file list beside the preview. Nothing goes live from Galley: Send for review commits the changes as the person who sent them, credits everyone else who edited, pushes a galley branch and opens (or updates) one pull request, with the build's pass or fail shown in the toolbar. You merge it on GitHub; once it is merged, Galley starts the next round from your main branch.
Builds and deploys belong in the repository's own GitHub Actions, so no one's code ever runs on the Galley server. The preview runs the site's scripts in a sandboxed frame that cannot see anyone's Galley session, and members can never touch .git/ or .github/. The token wants Contents and Pull requests set to Read and write, and Actions set to Read, on that one repository.
Sections you name yourself, a list or a board, drag to reorder, due dates that go amber then red, assignees, checklists, comments and attached files.
Task due dates appear automatically next to the things you schedule: site visits, photography, the print deadline, go-live. Month, week and agenda views, drag an entry to move it, and a subscribable feed so a client can follow the plan in their own calendar.
A shared directory of printers, photographers, copywriters and freelancers, with what you booked them for on each project and what it cost.
Drag anything in. Thumbnails, dimensions, duration for video, a colour palette pulled from each image, tags, folders, and a record of which task or paragraph each file belongs to.
Add it to the home screen from Safari or Chrome and it opens full screen with its own icon.
| Invite only | No public sign-up. The first account is the admin; everyone else is invited and sees only the projects they are added to. Each invite link lasts a day, a week, a month, three months, or forever — you pick when you make it. |
| Two-factor | Optional TOTP on any account, from Account → Two-factor: scan the QR with Google Authenticator, 1Password, Aegis or anything else that speaks TOTP. Ten one-shot recovery codes are shown once, when you turn it on. |
| Your own SMTP server, or Resend, Postmark, SendGrid or Mailgun when your host blocks SMTP ports. Invites send themselves. | |
| Notifications | An inbox for mentions, assignments and client feedback, with email when a provider is set up. |
| Search | ⌘K across tasks, copy, files and projects, scoped to what you are allowed to see. |
| Export | A zip of the whole project: copy as Markdown, tasks as CSV, every original file. |
| Backups | One click, or nightly with retention, from the admin panel, and the database is copied aside before any upgrade migrates it. |
| Project templates | Start a project from an existing one and keep the task list and page structure, without last client's content. |
| Repeating tasks | Weekly, monthly, quarterly. Tick one off and the next appears, which is how a care plan lives here alongside a build. |
| Currency | Set a three-letter code in Admin → Settings; costs are stored as minor units so nothing rounds twice. |
| Themes | Light by default; switch to dark, or let it follow the system. |
| Keyboard | ? lists every shortcut. |
mkdir galley && cd galley
curl -O https://raw.githubusercontent.com/kevincardwell/galley/main/compose.yml
# set GALLEY_URL in compose.yml
docker compose up -d
Images are published for linux/amd64 and linux/arm64 on every release:
| Registry | Image |
|---|---|
| GitHub | ghcr.io/kevincardwell/galley:latest |
| Docker Hub | kevincardwell/galley:latest |
Pin a version with a tag such as :0.1.0 if you would rather upgrade deliberately.
Data lives in the galley-data volume at /data. To keep it in a folder instead, change the volume to - ./data:/data: Galley takes ownership on start, and PUID/PGID choose who it runs as.
Behind a reverse proxy: forward to port 3000, set GALLEY_URL to the public https address, and raise the proxy's body limit to at least MAX_UPLOAD_MB. The https part matters, because home screen installation needs it. The compose file binds the port to 127.0.0.1 for exactly this setup; if you reach Galley directly instead, publish 3000:3000 and set TRUSTED_PROXY_HOPS=0.
To build the image yourself, uncomment build: . in compose.yml.
Galley ships an Unraid template. Until it appears in Community Applications, add it by hand:
https://raw.githubusercontent.com/kevincardwell/galley/main/unraid/galley.xmlThe data path defaults to /mnt/user/appdata/galley and holds the database, uploads and backups, so that one folder is your backup. Set Public URL to the address you actually reach it on, especially behind a reverse proxy.
Node 22 or newer, plus ffmpeg on the PATH if you want poster frames for video.
git clone https://github.com/kevincardwell/galley.git
cd galley
npm ci
npm run build
GALLEY_URL=http://localhost:3000 GALLEY_DATA_DIR=/srv/galley PORT=3000 npm start
GALLEY_URL is not just for invite links: without it, production builds assume they are behind TLS and mark the session cookie Secure, so a plain-http address (a LAN IP, say) would not keep you signed in.
| Variable | Default | What it does |
|---|---|---|
GALLEY_URL | none | Public address, used for invite links and to mark cookies secure. Set it whenever the instance is reachable on anything but localhost. |
GALLEY_DATA_DIR | ./data, /data in Docker | Where the database and uploads live. |
MAX_UPLOAD_MB | 500 | Largest single upload. |
TRUSTED_PROXY_HOPS | 1 | How many reverse proxies sit in front, so the real client address can be found for rate limiting. Set 0 when Galley is the exposed server: forwarded headers are then ignored rather than trusted. A chain shorter than this number is ignored too. |
PORT | 3000 | Port to listen on. |
TZ | UTC | Server time zone. Decides when the nightly backup runs and how dates are grouped. |
PUID / PGID | 1000 / 1000 | Who Galley runs as. It takes ownership of the data directory on start, so a bind mount does not need chowning first. The Unraid template sets 99 / 100. |
GALLEY_AUTH_HEADERS | off | Accept sign-ins from a reverse proxy that has already authenticated the caller. See below. |
GALLEY_AUTH_SECRET | none | Shared secret the proxy must send in the x-galley-auth header, proving the request really came through it. Strongly recommended. |
GALLEY_AUTH_EMAIL_HEADER | Remote-Email | Which header carries the address. |
GALLEY_AUTH_NAME_HEADER | Remote-Name | Which header carries the display name, if any. |
GALLEY_AUTH_AUTO_CREATE | off | Create an account the first time someone new arrives, instead of requiring an invite. |
GALLEY_URL and MAX_UPLOAD_MB are read on every start and override whatever the settings page
stored, so changing them in compose or the Unraid template always takes effect.
Email and the backup schedule are set in the app, under Admin, not with environment variables.
If everything on your server already sits behind Authelia, Authentik, oauth2-proxy or Tailscale, Galley can trust that and skip its own login.
environment:
GALLEY_AUTH_HEADERS: "1"
GALLEY_AUTH_SECRET: "a-long-random-string" # the proxy must send this in x-galley-auth
GALLEY_AUTH_AUTO_CREATE: "1" # optional: invite nobody, let the proxy decide
With GALLEY_AUTH_SECRET set, configure the proxy to add x-galley-auth: <secret> on the requests it
forwards and to strip any inbound copy of that header. Galley compares it in constant time and refuses
anything without it — so an exposed port is no longer a way in. Without the secret, Galley logs a warning
at startup and refuses to create the first (admin) account through the proxy, though accounts that already
exist can still sign in.
Warning
**The proxy is the entire security model.** These are ordinary HTTP headers, so anyone who can reach Galley without going through the proxy can set `Remote-Email` to whatever they like and become that person. A `GALLEY_AUTH_SECRET` closes that door, but only if the proxy sets it and strips inbound copies — belt and braces: keep Galley unreachable except through the proxy. Bound to localhost, or on an internal network the proxy can see and nobody else can. Check it from another machine before you trust it.
Defaults suit Authelia. For others, point Galley at their headers:
| Proxy | GALLEY_AUTH_EMAIL_HEADER | GALLEY_AUTH_NAME_HEADER |
|---|---|---|
| Authelia | Remote-Email (default) | Remote-Name (default) |
| Authentik | X-authentik-email | X-authentik-name |
| oauth2-proxy | X-Forwarded-Email | X-Forwarded-Preferred-Username |
| Tailscale Serve | Tailscale-User-Login | Tailscale-User-Name |
With GALLEY_AUTH_AUTO_CREATE off — the default — people still have to be invited first, and the proxy simply
saves them typing a password. With it on, the first person through becomes the admin and everyone after them
is an ordinary member; creating that first admin this way needs GALLEY_AUTH_SECRET, so restrict who reaches
Galley in the proxy's own rules either way.
An account that an admin has deactivated stays out whatever the proxy says. The password login form stays available for anyone who was set up that way, so you are never locked out if the proxy misbehaves.
galley.db-wal and is not a backup you can trust. The zip does not have this problem: it snapshots the database properly (VACUUM INTO) and is safe to take at any time.docker compose pull && docker compose up -d. Migrations run on start, and Galley copies the database to backups/pre-migration-<date>.db first. If an upgrade goes wrong, stop the container, put that file back as galley.db (deleting any galley.db-wal and galley.db-shm beside it) and run the previous image tag.One process, one SQLite file, one uploads folder. No Postgres, no Redis, no object store, no worker container, because a tool for a handful of people should not need a fleet.
npm run dev # development server
npm test # unit tests
npm run test:e2e # end-to-end, after npm run build
npm run lint
npm run db:generate # after editing src/db/schema.ts
CHANGELOG.md is what changed between releases. docs/DESIGN.md is the design direction, docs/PLAN.md the original plan, and docs/STATUS.md the running log of what is done and what is next.
Worth knowing before you install it, rather than after.
totp_secret for that row in galley.db with Galley stopped.PUID:PGID and runs the application unprivileged. Pass --user if you would rather it never ran as root at all — you then own chowning the directory yourself.en-GB — "14 Sept", not "Sep 14". Currency is a setting; the date format is not one yet. If that grates, say so in an issue.MIT. See LICENCE.
Content type
Image
Digest
sha256:400c2d97a…
Size
297.2 MB
Last updated
25 days ago
docker pull kevincardwell/galley