Skip to content

Self-heal web-UI service commands when their container is stopped#128

Open
Aquive wants to merge 1 commit into
qoliber:mainfrom
Aquive:fix/service-ui-autostart
Open

Self-heal web-UI service commands when their container is stopped#128
Aquive wants to merge 1 commit into
qoliber:mainfrom
Aquive:fix/service-ui-autostart

Conversation

@Aquive

@Aquive Aquive commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The containerised web-UI services (phpmyadmin, elasticvue, mailpit) dead-ended when their global container was stopped — which happens routinely after a Docker Desktop or machine restart. open errored out and enable printed "already enabled" while doing nothing.

Changes

  • phpmyadmin open / elasticvue open: start the container when the service is enabled but stopped, then open the browser. Not enabled → clear "enable with…" message.
  • mailpit open: always starts the container if stopped, then opens (Mailpit is always on).
  • phpmyadmin enable / elasticvue enable: idempotent — restart the container when already enabled but stopped.
  • status: points to the relevant open command when stopped.
  • Only the requested UI container is started — no full global start, no databases pulled in. Clear message when Docker itself is not running.
  • Shared helpers (isContainerRunning, openInBrowser, ensureGlobalServiceRunning, decideServiceUI) de-duplicate the logic across the three commands.

Docs (commands.md) and CHANGELOG.md updated.

phpmyadmin, elasticvue and mailpit dead-ended when their global
container was stopped (e.g. after a Docker or machine restart):
open errored out and enable printed "already enabled" while doing
nothing.

Now open/enable start the container on demand when the service is
enabled (mailpit is always on), and enable is idempotent. Only the
requested UI container is started — no full global start, no databases
pulled in — and a clear message is shown when Docker is not running.
status now points to the relevant open command.

Shared helpers (isContainerRunning, openInBrowser,
ensureGlobalServiceRunning, decideServiceUI) de-duplicate the logic.
@Aquive
Aquive force-pushed the fix/service-ui-autostart branch from 0904899 to 9a77fda Compare June 23, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant