nixos/plane: drop compose.sh and nixed.env so podman compose works directly #12

Closed
thodkatz wants to merge 1 commit from change/plane-direct-compose into main
Owner

Summary

Plane only runs on the NixOS host (nixos/plane/), so it no longer needs the compose.sh wrapper or the separate nixed.env layer that existed when both the microVM and the host ran Plane from one shared directory. Plain podman compose up -d now works directly in nixos/plane/, matching nixos/spliit/ and nixos/ente/.

Plan

  1. Delete nixos/plane/compose.sh and nixos/plane/nixed.env.
  2. nixos/plane/docker-compose.yaml and nixos/plane/.env.example:
    • Default APP_DOMAIN to ${APP_DOMAIN:-plane.thodkatz.ts.net} and PLANE_DATA to ${PLANE_DATA:-./data-nixed} in docker-compose.yaml (so plain podman compose up -d works on the host while agent test runs in the microVM can still override PLANE_DATA and APP_DOMAIN).
    • Add APP_DOMAIN=plane.thodkatz.ts.net to .env.example (and to the host's untracked nixos/plane/.env).
  3. nixos/plane/lib.sh and nixos/plane/restore.sh:
    • lib.sh is now shared only by backup.sh and restore.sh: drop nixed.env and default PLANE_DATA=${PLANE_DATA:-./data-nixed}.
    • Update restore.sh's final log hint from ./compose.sh logs migrator to podman compose logs migrator.
  4. Update docs and scripts:
    • nixos/plane/README.md: replace compose.sh / nixed.env instructions with podman compose.
    • docs/guides/network-and-caddy.md: drop the always through its compose.sh, never bare compose note on nixos/plane/.
    • docs/guides/moving-to-the-machine-layout.md and docs/guides/move-nixos.sh: start nixos/plane with podman compose up -d.
    • retirer: drop the $path/compose.sh special case.

Rule changes (instructions edited)

  • docs/guides/network-and-caddy.md (Caddy conventions): removed the rule that nixos/plane/ must always be run through ./compose.sh and never bare compose (dropped on purpose: compose.sh is removed and bare podman compose now works directly).
  • nixos/plane/README.md: replaced ./compose.sh and nixed.env rules with podman compose (and PLANE_DATA/APP_DOMAIN env overrides for microVM test runs).
  • docs/guides/moving-to-the-machine-layout.md: updated nixos/plane/ start command from ./compose.sh up -d to podman compose up -d.

Check

  • grep -rn 'compose\.sh\|nixed\.env' AGENTS.md BACKLOG.md retirer vps nixos docs/guides/network-and-caddy.md prints nothing.
  • t=$(mktemp -d) && cp -a nixos/plane/. "$t" && cp "$t/.env.example" "$t/.env" && docker compose -f "$t/docker-compose.yaml" --env-file "$t/.env" config -q && rm -rf "$t" exits 0 (bare compose works without compose.sh).
  • AGENTS.md Setup check command exits 0.

🤖 Generated with Antigravity

## Summary Plane only runs on the NixOS host (`nixos/plane/`), so it no longer needs the `compose.sh` wrapper or the separate `nixed.env` layer that existed when both the microVM and the host ran Plane from one shared directory. Plain `podman compose up -d` now works directly in `nixos/plane/`, matching `nixos/spliit/` and `nixos/ente/`. ## Plan 1. **Delete `nixos/plane/compose.sh` and `nixos/plane/nixed.env`.** 2. **`nixos/plane/docker-compose.yaml` and `nixos/plane/.env.example`:** - Default `APP_DOMAIN` to `${APP_DOMAIN:-plane.thodkatz.ts.net}` and `PLANE_DATA` to `${PLANE_DATA:-./data-nixed}` in `docker-compose.yaml` (so plain `podman compose up -d` works on the host while agent test runs in the microVM can still override `PLANE_DATA` and `APP_DOMAIN`). - Add `APP_DOMAIN=plane.thodkatz.ts.net` to `.env.example` (and to the host's untracked `nixos/plane/.env`). 3. **`nixos/plane/lib.sh` and `nixos/plane/restore.sh`:** - `lib.sh` is now shared only by `backup.sh` and `restore.sh`: drop `nixed.env` and default `PLANE_DATA=${PLANE_DATA:-./data-nixed}`. - Update `restore.sh`'s final log hint from `./compose.sh logs migrator` to `podman compose logs migrator`. 4. **Update docs and scripts:** - `nixos/plane/README.md`: replace `compose.sh` / `nixed.env` instructions with `podman compose`. - `docs/guides/network-and-caddy.md`: drop the `always through its compose.sh, never bare compose` note on `nixos/plane/`. - `docs/guides/moving-to-the-machine-layout.md` and `docs/guides/move-nixos.sh`: start `nixos/plane` with `podman compose up -d`. - `retirer`: drop the `$path/compose.sh` special case. ## Rule changes (instructions edited) - **`docs/guides/network-and-caddy.md`** (*Caddy conventions*): removed the rule that `nixos/plane/` must always be run through `./compose.sh` and never bare compose (dropped on purpose: `compose.sh` is removed and bare `podman compose` now works directly). - **`nixos/plane/README.md`**: replaced `./compose.sh` and `nixed.env` rules with `podman compose` (and `PLANE_DATA`/`APP_DOMAIN` env overrides for microVM test runs). - **`docs/guides/moving-to-the-machine-layout.md`**: updated `nixos/plane/` start command from `./compose.sh up -d` to `podman compose up -d`. ## Check - `grep -rn 'compose\.sh\|nixed\.env' AGENTS.md BACKLOG.md retirer vps nixos docs/guides/network-and-caddy.md` prints nothing. - `t=$(mktemp -d) && cp -a nixos/plane/. "$t" && cp "$t/.env.example" "$t/.env" && docker compose -f "$t/docker-compose.yaml" --env-file "$t/.env" config -q && rm -rf "$t"` exits 0 (bare compose works without `compose.sh`). - `AGENTS.md` *Setup* check command exits 0. 🤖 Generated with [Antigravity](https://antigravity.google)
Signed-off-by: theo <thodkatz@pm.me>
thodkatz changed title from WIP: change/plane-direct-compose to nixos/plane: drop compose.sh and nixed.env so podman compose works directly 2026-11-18 10:47:38 +00:00
Author
Owner

Methodology 8709629a2405e2ff216415eecf14221fe4712b55

  1. nixos/plane/docker-compose.yaml (lines 66, 68): WEB_URL and CORS_ALLOWED_ORIGINS in x-app-env still use bare ${APP_DOMAIN} without the :-plane.thodkatz.ts.net fallback, so if an existing .env lacks APP_DOMAIN they resolve to https://. Use ${APP_DOMAIN:-plane.thodkatz.ts.net} there too.

Checks: AGENTS.md Setup check: exit 0
🤖 Generated with Antigravity

Methodology 8709629a2405e2ff216415eecf14221fe4712b55 1. **`nixos/plane/docker-compose.yaml` (lines 66, 68):** `WEB_URL` and `CORS_ALLOWED_ORIGINS` in `x-app-env` still use bare `${APP_DOMAIN}` without the `:-plane.thodkatz.ts.net` fallback, so if an existing `.env` lacks `APP_DOMAIN` they resolve to `https://`. Use `${APP_DOMAIN:-plane.thodkatz.ts.net}` there too. Checks: AGENTS.md Setup check: exit 0 🤖 Generated with [Antigravity](https://antigravity.google)
Author
Owner
  1. Fixed in dc634ce: WEB_URL and CORS_ALLOWED_ORIGINS now also use ${APP_DOMAIN:-plane.thodkatz.ts.net}.

🤖 Generated with Antigravity

1. Fixed in dc634ce: `WEB_URL` and `CORS_ALLOWED_ORIGINS` now also use `${APP_DOMAIN:-plane.thodkatz.ts.net}`. 🤖 Generated with [Antigravity](https://antigravity.google)
thodkatz closed this pull request 2026-11-18 10:52:07 +00:00
Author
Owner

Merged as 95e0a6ac2e on main, but Forgejo recorded no merge and kept the PR open: closed by methodology reconcile.

🤖 Generated with Claude Code

Merged as 95e0a6ac2ea73f3367bf2c3c7ab0afa2dd0aac06 on `main`, but Forgejo recorded no merge and kept the PR open: closed by `methodology reconcile`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thodkatz/selfhosted!12
No description provided.