feat: containers #3

Merged
thelion merged 2 commits from feat/containers into main 2026-11-05 01:56:20 +00:00
Owner
No description provided.
A new Containers page for rootless Podman (shellsd's /v1/container*):
- an opt-in switch, like SFTP: turning containers on restarts the shell
  once; the page polls while it switches and shows a failure if it has one
- containers grouped by Compose project with up/restart/stop/down, each
  with start/stop/restart/remove and live logs (refetched every 2 s while
  open, pinned to the end unless you scroll up)
- images with their size and a "remove unused" button, and a quick start

A compose builder (/containers/new): pick services from a catalog (web
server, Node.js and Python apps with starter code, PostgreSQL, MariaDB,
Redis, WordPress with its database already wired, Adminer, Uptime Kuma,
or any image), then tick boxes: on the web (published on 127.0.0.1 at a
free port), keep its data (a named volume), private (internal network: no
internet, only the project's services reach it), restart automatically,
start after. It shows the compose.yml it makes and a rough estimate of
memory against the shell's limit, image downloads against free space, and
CPU, then saves ~/apps/<name>/compose.yml (plus .4evr-compose.json, so the
project can be edited in the builder again) and starts it via
/v1/compose-up. The generated file was checked with podman-compose on a
real shell: services reach each other by name, private ones can't reach
the internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(containers): named volumes and networks, limits, health checks, restart policy in the builder
Some checks failed
CI / test (pull_request) Successful in 11m28s
CI / release (pull_request) Failing after 0s
489c625c49
- Shared volumes: name them on the project and mount them into any
  service at a path (e.g. one folder of site files for nginx and PHP);
  renames follow through to the mounts.
- Networks: named ones, each optionally without internet (internal),
  joined per service with checkboxes.
- Per service: restart policy (unless stopped, always, on failure,
  never), memory and CPU limits, and a health check pre-filled for the
  catalog services (on by default for the databases).
- The estimate says the most the project can use when every service has
  a memory limit.

Checked on a real shell with podman-compose 1.0.6: limits (64m, 0.5 CPU)
and restart: always are applied, the health check goes healthy, a shared
volume is seen by both services and they talk over the named network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thelion deleted branch feat/containers 2026-11-05 01:56:20 +00:00
thelion referenced this pull request from a commit 2026-11-05 01:56:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
ircforever/shells-dashboard!3
No description provided.