Bỏ qua để đến nội dung
Apps The fleet Docker workspace. Every container, compose stack, image, volume and network across your servers, with deploy, edit, env, update, rollback, adopt, backup, notes and tags in one place.

Apps

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

Apps (/apps) is the account-level Docker workspace. It brings the per-server Apps experience to the whole fleet: every container and compose stack across all your connected servers, grouped and searchable, and every action is sent to the server that hosts the item. You manage everything right here. There is no “open in server” hop. Docker apps and Compose stacks are on every plan. Creating, building, rebuilding and rolling back an app or stack, its env and an attached database work on Free, Plus, Pro and Max; a new app or stack counts against your plan’s shared quota across all servers (Free 3, Plus 5 per server, Pro and Max unlimited). Adopting existing containers, PR previews, shared variables and path routes need Pro. Day-2 actions on what already runs (start, stop, restart, logs, releases, app.update, domains, app auto-update, delete) are never plan-gated.

  1. Click Add Docker app to open the shared Deploy drawer.
  2. Choose a source:
    • Catalog: search the app catalog (n8n, Ghost, analytics, AI UIs and more) and click a tile. Stack apps are badged stack and bring up several services.
    • Image/Compose: enter a Name, an Image (org/image:tag, from a public registry or a private registry) and the container port, or switch to Stack and paste a docker-compose.yml.
    • From Git: build from a repository with a Dockerfile or Nixpacks (see Docker apps & stacks).
    • Upload: drop a folder archive (.tar.gz, up to 512 MiB). It goes straight to the server and is built there.
  3. Pick the Server. For Upload and From Git (a single container) the default is Auto (recommended): MZPanel picks the online server with the most free memory that has room for a build, and the drawer shows which server it will use and why. Open All servers to see every server with the reason it is or isn’t eligible (offline, excluded from automatic placement, a homelab box without a Cloudflare Tunnel, too little free RAM or disk, an older agent). Narrow the choice with an optional Server tag or Region (matched against the server’s location). An app name you already use always redeploys on its own server. To deploy somewhere specific, pick that server instead; the catalog and image sources always take a named server. Homelab servers carry the Homelab badge.
  4. Set the domain. Upload and Auto deploys can use an Instant URL (a free HTTPS address, no DNS needed) or your own domain; the other sources take your domain (MZPanel writes the nginx vhost and issues SSL). Add any environment variables and, for builds, an optional database to attach.
  5. Leave Safe defaults (uptime monitor, alert rule, backup job) on for Upload and Auto deploys: once a new app’s first build completes, it gets an uptime monitor on its URL, an alert rule for unhealthy or restarting containers and a daily backup job. Anything that already exists, or your plan doesn’t allow, is skipped with a note.
  6. Optionally file it into a project environment (catalog, image and per-server Git deploys).
  7. Click Deploy (or Build & deploy). The build or compose output streams live. The result card shows the URL, the server an Auto deploy was placed on and why, and, about 30 seconds after the build, what the safe defaults created, with links to Uptime, Monitoring and Backups.
  • Five tabs: Stacks (compose projects), Containers (every container in the fleet), then Images, Volumes and Networks (with reclaimable-space hints). On narrow screens the last three fold into one Resources menu.
  • Filter and search by container, image or stack name, status and server. On Containers a Server tag filter narrows to servers with that tag; on Stacks a Tag filter narrows to app tags.
  • Deploy state: managed apps show their URL (including an instant URL) and when they were last deployed (a failed last deploy is shown in red). A new app whose build is running is listed as Deploying, and one whose build finished after its server last reported its containers as Syncing until the next report; both are Status filter options while there are any.
  • Work a stack: each compose project is a card with its services, live CPU/memory and status. Start, stop, restart, edit the compose file, update images, open Deployments and roll back, or remove it (named volumes are kept).
  • Open a container for a detail drawer: start, stop, restart, recreate, logs, stats history, the environment editor, domains, attached database, auto-update, backup and notes.
  • Deployments: every deploy, build, update and rollback of an app or stack is listed in its Deployments tab, like on Vercel or Cloudflare Pages: status (queued, building, ready, failed, canceled), the commit message with a link to the commit, the branch, what started it (a git push, you in the dashboard, an API token or MCP) and who, when, and how long it took. Expand a row for the error and the build log; Rollback returns to that release without rebuilding (the rollback row shows the commit that is live again), Redeploy rebuilds the current git source. Cards show Building… or Deploy failed while it matters. Build logs are kept 14 days; the history itself stays until you remove the app or stack, which removes its history too.
  • Update: when a newer image is published, the row offers Update, which pulls the image and rolls it out with a health check (zero downtime behind a vhost).
  • Adopt: containers and compose projects started outside MZPanel (a plain docker run or docker compose up) are flagged. Adopt into mzpanel gives them lifecycle controls, backups and updates.
  • Resource clean-up: remove unused images and volumes, prune unused networks, and Clear stopped containers.
  • Tags: tag apps from the shared site-tag pool (see Notes & tags).
  • Shared with you: apps an owner shared with you as a client appear in their own section.

Apps reads three fleet aggregators over the agent-pushed inventory cache: GET /v1/servers/docker/all (containers), GET /v1/servers/stacks/all (stacks) and GET /v1/servers/docker-resources/all (images, volumes, networks), plus the fleet app list GET /v1/apps for URLs, last deploys and the deploying/syncing state. An Auto deploy calls POST /v1/apps/placement for the preview, then POST /v1/apps/source-upload and POST /v1/apps/deploy. Rows are tagged with their host server, and offline servers show their last-known state. Actions are app.*, stack.* and docker.* jobs dispatched to that server’s agent, which runs them natively:

ActionJob kind
Deploy an image appapp.create
Build from git / rebuildapp.build / app.rebuild
Deploy a compose stackstack.deploy
Start / stop / restart a containerdocker.start / docker.stop / docker.restart
App lifecycleapp.start / app.stop / app.restart / app.delete
Stack lifecyclestack.up / stack.down / stack.restart / stack.delete
Change image, port, env, limits (rolling)app.update
Update a stack’s imagesstack.pull / stack.update
Deployments historyGET /v1/servers/:id/apps/:name/deployments · .../stacks/:name/deployments (read from the control plane, no job)
Releases / roll backapp.releases, app.rollback · stack.releases, stack.rollback
Adoptapp.adopt / stack.adopt
Resource clean-upimage.prune, volume.prune, network.prune, docker.remove

State lives on each box (Docker’s own store plus MZPanel’s app and stack metadata under /etc/mz/). The control plane doesn’t keep a second copy.

The REST API and MCP are on every plan; the Pro job kinds are listed at the top of this page.

  • Deploy code from your machine: apps_source_upload → run its curl → apps_deploy → poll apps_deploy_status. A Git repo skips the upload (apps_deploy {source: {git: {url}}}). To let MZPanel pick the server (most free RAM among the online servers that match a tag or region), use apps_fleet_source_upload / apps_fleet_deploy; apps_placement is the dry run. New apps get an uptime monitor, a container alert rule and a daily backup job by default. See Deploy code from your AI agent.
  • Read the fleet: apps_list_all (every managed app with server, state, URL, last deploy and load), servers_docker_all, servers_stacks_all, servers_docker_resources_all; per server docker_ps and stacks_list; containers_metrics_history for one container’s CPU/RAM.
  • Deployment history: deployments_list (the workspace feed; filter by serverId, kind, name, status), apps_deployments / stacks_deployments for one app or stack, deployments_latest for the newest deploy of every target. Each row has status, trigger, commit, durationMs, error and the jobId to read its output with jobs_output.
  • Quick control: docker_control (start, stop or restart a container; preview first, then apply: true).
  • Everything else: jobs_schema with the kind (for example app.create), then jobs_create with { "id": "<server>", "body": { "type": "app.create", ... } }, then jobs_get until it finishes.
  • Move or clone to another server: moves_create (see Moves & clones).

Deleting an app or stack (app.delete, stack.delete, stack.down) needs the opt-in scope sites:delete; a rollback needs backups:restore. docker.exec is never available to API tokens. See Docker apps & stacks for full workflows.

Docker workloads run on a single box, so the on-box mz CLI drives the same engine:

Terminal window
mz docker status --json # every container on this box
mz app logs <name> # recent logs of one app
mz app restart <name>
mz stack list --json # compose stacks on this box
mz stack up <name>
mz stack down <name>

Always pass a sub-action (a bare mz app or mz stack errors) and --json for machine output. See The mz CLI.

  • 402 app_limit. Your plan’s Docker apps & stacks quota is used (Free 3, Plus 5 per server). Delete an app or stack, or upgrade; redeploying one you already have still works.
  • 403 tier_required. On Free and Plus, adoption, previews, shared variables and path routes are refused. Existing containers can still be started, stopped, restarted, updated and removed.
  • Offline servers still list, actions don’t. A box’s last-known containers stay visible while its agent is offline, but actions need the agent connected.
  • Removing a stack removes every service. Named volumes are kept. To drop one service, remove that container from its drawer.
  • Deleting an app keeps data unless you ask. app.delete keeps volumes and the attached database unless you tick the drop options (dropVolumes, dropDb).
  • Resource prune is guarded. Only unused images and volumes, and non-built-in empty networks, can be removed.