Skip to content

Fix Docker and Caddy setup, bind ports to localhost, update the shared cache - #33

Merged
jurczykpawel merged 20 commits into
mainfrom
release/fixes-2026-11-26
Nov 26, 2026
Merged

jurczykpawel merged 20 commits into
mainfrom
release/fixes-2026-11-26

Conversation

@jurczykpawel

Copy link
Copy Markdown
Owner

One release branch with four sets of fixes. User-facing changes and upgrade steps: CHANGELOG.md.

  • One-line installer on clean Debian/Ubuntu: Docker installs, missing sudo is installed.
  • --domain-type=caddy installs Caddy and fails when the domain is not served.
  • Application ports listen on 127.0.0.1 for new installations (Cytrus unchanged).
  • Shared WordPress cache: password and Docker bridge address; Postiz uses its own Redis by default.

Verified on the merged branch: ./tests/run.sh 370 passed, 0 failed. Local Docker end-to-end runs: one-line installer on Debian 12 and Ubuntu 24.04 (12/12), Caddy domain on Debian 12 (10/10), ntfy and Stirling-PDF with cytrus and caddy (15/15), two WordPress sites with the shared cache (23/23). Not covered: a real VPS, amd64, public DNS and certificates, Cloudflare, MySQL mode, upgrading an existing installation on the merged branch.

Fixes #25
Closes #26
Fixes #28

🤖 Generated with Claude Code

jurczykpawel and others added 20 commits November 26, 2026 04:56
The CLI parser exports DRY_RUN=false and get.docker.com treats any non-empty
value as a dry run, so nothing was installed. Run it without the variable.

Fixes #28

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Minimal Debian and Ubuntu systems ship without sudo, which the toolbox scripts
call even when running as root.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…uire a password

The shared Redis is published only on the address containers reach as
host-gateway, with a generated password stored in redis-shared/.env.
Existing installations are brought up to date by `deploy.sh wordpress --update`
or by installing another site: data is kept, every site using the cache (and
stacks pointing at it by URL) receives the password and is reloaded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Installers follow the BIND_ADDR convention: 127.0.0.1 for caddy, cloudflare and
local, all interfaces for Cytrus. The Supabase installer applies it to the HTTP
ports of the downloaded compose file; the PostgreSQL pooler stays as shipped.
A static test covers every published port line.

Existing installations keep their compose file until it is edited or redeployed.

Closes #26

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Neither installer had a PORT= line, so the domain was never passed to it and,
with ports bound to localhost, the app was reachable only through a tunnel.

minio: PORT is the Console port (the domain target), API_PORT the S3 API.
typebot: PORT is the viewer port (base domain); the installer reports the
builder port for builder.* domains and installs without a domain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… it changes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eploys

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s not served

- one ensure_caddy installer shared by both domain types and the hosting scripts
- a failed install or site setup fails the deploy and prints the reason
- check that Caddy stays up: it can report a successful start and exit
- keep an existing Caddyfile, adding the conf.d import to it
- caddy-install.sh loads its messages when TOOLBOX_LANG is already set

Fixes #25

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The /etc/caddy path was rewritten first, to a directory under mktemp's
output. On Linux that is under /tmp/, so the following /tmp/ rewrite
changed it again and the site lookup read a directory that does not exist.
Rewrite /tmp first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jurczykpawel
jurczykpawel merged commit 9a71581 into main Nov 26, 2026
1 check passed
@jurczykpawel
jurczykpawel deleted the release/fixes-2026-11-26 branch November 26, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant