Help · Using Morie
The Morie Box and Rigs
A sandbox on your Mac, and your whole app per ticket inside it.
Checked against Morie 0.57.2.
- The Morie Box is a small Linux computer inside this Mac. Its glyph at the top starts and stops it.
- A rig is a repository’s services, started for one ticket at its own address, such as t12-web.shop.morie.test.
- Open a ticket’s Rigs and press Start; Logs, Restart and Stop are on the same row.
Shop’s shop-web rig has a web app, an API and a database. You start it on #12 to try saved carts, while #13’s gift-card work runs in its own rig.
- Open #12’s Rigs tab and press Start on shop-web. Morie starts the Box when it needs it.
- When the web service is ready, open its address. With rig addresses set up, it can be
t12-web.shop.morie.test. - Open #13’s Rigs and start its rig too. It has its own address.
- Back on #12, use Logs to read the API’s output. Press Stop when you are done; the database’s saved data is kept.
The Box
The Morie Box is a small Linux computer inside your Mac. Rigs run there, along with the chats and terminals you choose to put there.
The Box icon at the top shows its state and offers Start or Stop. Set it up in Settings → This Mac → Morie Box, or let a chat ask to set it up for you. A rig that needs the Box asks when it starts. The card says what it downloads and how much disk it takes, and nothing starts until you allow it. That page also has its memory, CPU, disk and internet settings, the agents’ sign-ins and tools in the Box.
Stopping the Box stops everything running inside it. Morie asks first when chats, terminals or rigs are using it. Stopping one rig leaves the Box and other rigs running.
A rig per ticket
A rig is a repository’s services running together for one ticket: for example, a web app, an API and a database. Each ticket has its own rig, with its own addresses, so you can try two changes beside each other.
Open the ticket, then Rigs in the rail on the right. Each repository with a worktree has a row. Morie reads its services from the repository’s Compose file. No compose file means there are no services defined there yet; ask a chat to help set them up. A simple run script can be started from the Terminals picker instead.
Docker Compose in a ticket's terminal. A terminal Morie opens in a ticket's worktree is told the rig's Compose project (COMPOSE_PROJECT_NAME), the same name the rig's row shows, so a repository's own docker compose commands name that ticket's rig. A repository with one Compose file entry, or a ticket on its own Compose file, gives its terminals that rig's project. With several entries, the terminal gets the entry whose first Compose file's folder is the nearest one that holds the terminal's folder, as Compose searches upward; nothing is set when no entry's folder holds it, or two are equally near, and Docker's own default stands. Checkout terminals get nothing, and nothing is written into the worktree. In a shell outside Morie, copy the -p <project> from the rig's row. Example: a terminal of ticket 12 in shop-api's web/ folder runs docker compose ps and sees that ticket's rig; outside Morie you run docker compose -p <project> ps with the project copied from the row.
Borrowing the Base rigs
How it works. A ticket's rigs are the rigs of the repositories it has a worktree of. For every other repository of the project, the ticket uses that repository's Base rig: it borrows it. Nothing of a borrowed repository runs for the ticket, so a ticket that changes one front end takes one rig's memory in the Morie Box, not the whole stack's. Morie never starts a Base rig for a ticket.
A call from a ticket's rig to host-gateway (such as host.docker.internal, or an exact name) lands like this:
| A call from a container of #12 to host-gateway on port… | reaches | | --- | --- | | a port a rig of #12 has published since its worktree was made, running | #12's own rig, whatever other tickets or Base run | | the same port while that rig is stopped | nothing: the call gets no answer (it never goes to the Base rig) | | a written port no rig of #12 has published (its repository is borrowed, or its own rig has never started on #12, or its worktree was removed) | this Mac: the Base rig that writes that port, or another program there, or nothing | | a written port the Base rig had to move because another program holds it | that other program, not the Base rig (the Base card shows the port it took) | | a port on another ticket's card (from the project's range) | that ticket's rig: tickets are not a security boundary | | 80 or 443 while rig addresses are on | Morie's proxy, which answers by name | | Morie's own ports (its MCP server, name answerer and proxy) | Morie itself, never a rig; its MCP server answers only with a chat's sign-in | | any port, from a container whose network the files name outright | always this Mac (it is never routed to #12) |
This is Docker's own host-gateway, as Docker Desktop has it: a port the ticket has not published is this Mac's. Limits:
- A borrowed rig is shared: what the ticket writes to it (a database row, a cache key), every ticket and Base sees. A ticket that changes a database's shape needs its own: use Run it all here, or give it a worktree of that repository.
- A ticket's names for a borrowed repository answer only while a rig of that ticket runs (see the next paragraph). A program run outside a rig, such as a dev server in a terminal on the ticket, calls the borrowed service by its written port.
- Removing a ticket's worktree gives that repository's ports back within about 30 seconds (Morie's next look), and the ticket borrows it again.
- Inside a repository the ticket has a worktree of, using one service from Base (for example a shared database while the ticket runs its own api) is the Compose file's own choice: keep the service out of the ticket with a profile, and point the app at host-gateway on its written port, which then reaches the Base rig.
A ticket's names for what it borrows. With Rig addresses on, a ticket also has its own names for the web services of the repositories it borrows, made by the project's pattern as its own names are: on ticket 12 of a project "shop", t12-api.shop.morie.test reaches shop-api's Base rig while it runs. A web service here is one whose port Morie has seen answer HTTP on the Base rig; Morie asks the Base rig's ports only while a running rig of a ticket borrows it; once seen, a service keeps its name while the Base rig starts again, stops answering or is stopped (until Morie quits). A name for a service Morie has not seen answer yet (the Base rig's first start while the ticket borrows it, or after Morie restarted) is not the Base rig's until the probe sees it answer: until then it gives today's page, or, when the ticket's other names go to one of its own services, that service answers it. A Base rig's port 80 or 443 is never a name's route (this Mac sends those to Morie's proxy itself). Where a name part is taken twice, the repository listed first in the project keeps it and the other is <name>-<repository>, as today. "Other names of a ticket go to" a borrowed service reach its Base rig the same way. The names go to the Base rig on this Mac only, through Morie's proxy, the same way as the ticket's own names; nothing new is reachable from outside this Mac. They answer only while a rig of the ticket runs: with none running, a name gives the plain page No rig answers at this name, Morie has no running rig at t12-api.shop.morie.test. Start the ticket's rigs in its Rigs tab. While the Base rig is stopped, the name answers with a page that says so: t12-api.shop.morie.test is borrowed from shop-api's Base rig, which is not running. / Start it in Base → Rigs, or run shop-api on #12 with Run it all here. While it runs but its service answers no web page, the first line reads …which runs but answers no web page. Once the ticket runs that repository itself, the same name answers from the ticket's own rig. Morie reads which rigs run about every 30 seconds: in the moments after a Base rig stops, a call to the name may reach another program that took its port, as with a ticket's own rig.
On the ticket's Rigs, each row of its own carries This ticket's. In a project of several repositories, an own rig that is down says where a call to its written ports goes: Not started on this ticket yet: calls from its other rigs to 6120 reach the Base rig until it starts., or after its first Start, Stopped: calls from this ticket's other rigs to 6120 get no answer until it starts again. They do not go to the Base rig. Under them, Borrowed from Base lists every other repository whose checkout is on this Mac, read-only: Running in Base with the ports its Compose file writes and, for each web service, this ticket's name: api · 6120 · https://t12-api.shop.morie.test → Base rig (while no rig of the ticket runs, the name is plain, with , once a rig of this ticket runs; a name that would pass 63 characters gets No name: … as on an own rig), Stopped in Base with Open Base rigs and Calls to 6120 or 6121, or to t12-api.shop.morie.test, reach nothing until shop-api's Base rig runs., or No Base rig when its checkout has no Compose file. Run it all here… asks Run all of shop on #12?, then prepares the ticket's worktree of each borrowed repository with a Base rig (as Prepare worktree in the Git tab does, with its default branch and base) and starts its rig on the ticket. A worktree that cannot be prepared keeps its row under Borrowed from Base with the Git tab's own error. When nothing is borrowed and every worktree of the ticket has a Compose file, the tab reads Every repository of shop with a Compose file runs on this ticket. A project with one repository shows none of this.
Set it up. Example: a project shop with three repositories, each with its own Compose file: shop-web (web on 4300), shop-api (api on 6120) and shop-db (db on 5432). 1. Open Base → Rigs and start the Base rigs of shop-api and shop-db. 2. In shop-web's Compose file, under web, add extra_hosts: ["host.docker.internal:host-gateway"] and set its API address to http://host.docker.internal:6120. 3. On ticket #12, prepare a worktree of shop-web only, open Rigs and press Start: one rig starts. Its card shows shop-web with This ticket's, and under Borrowed from Base, shop-api and shop-db Running in Base. 4. #12's web calls 6120 and reaches the Base shop-api. With Rig addresses on (Settings → Rigs → Names and addresses), shop-api's line also shows api · 6120 · https://t12-api.shop.morie.test → Base rig: open the name and shop-api's Base rig answers. In shop-web's Compose file, an API address of https://t${MORIE_TICKET}-api.shop.morie.test reaches the Base rig now and the ticket's own rig after Run it all here. 5. To run the api on #12 too, press Run it all here…, then Run it all here: shop-api and shop-db get their worktrees and rigs on #12, and the same call now reaches #12's own shop-api.
From a chat. tickets.services.status on a ticket answers borrowed, one entry per borrowed repository: { repository: "shop-api", base: "running", names: ["t12-api.shop.morie.test"] } (running, stopped or none; names only with Rig addresses on and a web service seen), and mrig ps ends with the same in one line: borrowed from Base: shop-api (running, t12-api.shop.morie.test), shop-db (stopped). A request to a borrowed name while its Base rig is stopped answers 404 with the page's words; the way on is starting it in Base (a Base chat's mrig up -r shop-api) or Run it all here on the ticket. Each own rig's portsHeld is true once it has started on the ticket (its ports are the ticket's). Starting a borrowed repository is refused: mrig up -r shop-api or tickets.services.start with repository shop-api answers shop-api is borrowed from its Base rig on #12: this ticket has no worktree of it. Its rig is the Base rig, which a Base chat starts, stops and reads with -r shop-api. To run it on this ticket, the owner presses Run it all here on the Rigs card (or Prepare worktree in the Git tab), or a Base chat makes one with tickets.worktree.switch. The same words answer mrig logs -r shop-api and mrig stop -r shop-api. A repository whose checkout has no Compose file answers shop-mail has no rig on #12: this ticket has no worktree of it, and its checkout has no Compose file, so there is no Base rig to borrow either. A ticket's chat cannot make a worktree of another repository, so to stop borrowing it asks the owner or a Base chat: tickets.worktree.switch from a Base chat gives the ticket a worktree of shop-api on an existing branch, and the ticket's next tickets.services.status lists shop-api as its own. No tool starts a Base rig from a ticket's chat; a Base chat does.
A rig's Compose project
How it works. A rig runs its Compose files as Docker does, with one difference: the Compose project name.
- A ticket's rig is its own Compose project,
morie-t<ticket>-<repository>-<code>, so two tickets can run the same files at once. Its containers, its default network and the volumes Compose names itself (<project>_<volume>) are its own. - A Base rig uses Docker's own project name: the
name:its Compose file sets, else the folder of its first Compose file, asdocker composerun in that folder gives it. Your owndocker composecommands, make targets and scripts in that folder act on the same containers. Two cases differ from a plain command there: with an env file chosen in Change…, Morie gives Compose that file (--env-file), so aCOMPOSE_PROJECT_NAMEin it names the rig while a plaindocker composereads the folder's.env; and a checkout reached through a symlinked folder is named after the real folder, not the link. - A Base rig does not start or stop while a Compose project of the same name runs from another folder: The Compose project shop-web is also running from /Users/me/old/shop-web, so Morie does not start or stop it here. Stop it there, or give this Compose file a name: of its own. Delete, a reset of its data and the repository going away leave that project alone too, and so does any Compose file the rig used before a switch whose project name another folder now has; Morie then keeps holding the rig's secret values. When the repository went away, Morie keeps the rig's record and brings the rig down within a minute of that other folder's project going, and only then lets the values go. A folder whose name has no letter or digit left gets no project name from Morie, and Docker's own error says so.
- A name the file writes is kept as written in every rig: a volume's or network's
name:, anexternalone, acontainer_name. Two rigs that name the same one share it, as two Docker projects would, and a grey line on the rig says so. A fixedcontainer_namein two tickets' rigs makes the second Start fail with Docker's own error. To keep one per ticket, write${COMPOSE_PROJECT_NAME}into the name, for examplename: ${COMPOSE_PROJECT_NAME}-cache. - Morie adds nothing of its own to a container: no network, no variable, no file. A ticket's rigs of two repositories reach each other as two Docker projects do, through their published ports (see One rig reaching another). The rig's address variables (
MORIE_URL_<SERVICE>,MORIE_PORT_<SERVICE>) fill a${…}in the Compose file, so a service gets one only when its file asks:environment: { API_URL: "${MORIE_URL_API}" }.
Set it up. Nothing to turn on. Example: a repository checked out in a folder shop-web, with compose.yaml at its root and no name: in it. 1. Start its Base rig. 2. In a Base chat, tickets.services.status answers project: "shop-web" for it. 3. mrig compose ps in that chat lists the rig's containers, as docker compose ps in the folder would.
From a chat. tickets.services.status gives each rig's project. mrig compose … in a chat passes that project for you. tickets.services.start and stop on a Base rig whose Compose project also runs from another folder are refused with the words quoted under How it works above (The Compose project shop-web is also running from …). Stop the other copy, or give this Compose file a name: of its own, then ask again.
A repository's Compose files
A repository can list several Compose files by name (for example Deploy and Mailer), one of them the default. Each Compose file is its own Compose project, so each keeps its own containers and volumes (a Base rig's Compose files in one folder share that folder's project, as in Docker). Stopping one, or switching to another, never deletes the first one's data. After updating, reset the Morie Box so every Compose file runs as its own project. Only volumes Compose names itself are kept apart: a volume with a fixed name, an external volume or a bind-mounted folder is the same for both. Data of a Compose file that is no longer in the list stays on the disk too, and Delete does not remove it.
How it works
- The default is used wherever nothing else is picked. A rig runs one Compose file at a time; the Compose file picker on its row names it.
- Choosing another Compose file on a running rig switches at once, with no confirmation: the running one stops (its data is kept) and the chosen one starts.
- Reset this ticket's data… names its Compose file and leaves the others' data. Remove worktree with Also delete this ticket's rig deletes every Compose file's data; a volume name that two Compose files share is listed with its Compose file.
Set it up
- Open the ticket's Rigs and press Change… on the repository's row. Compose files shows the list; with none, the row says "Found automatically".
- Press Add a Compose file…. The Path box lists every Compose file Morie finds in the repository (up to three folders deep) that is not listed yet. Choose one, give it a Name, press Add. It shows in the list.
- Press Make default on the one to use when nothing else is picked, then Save. "Changes apply on next Start" shows until the rig starts again.
- Choose a Compose file in the Compose file picker on the row and press Start. The row shows that Compose file's name and its services.
- While it runs, choose another one in the picker. The row shows "Switching to Mailer…", then the new Compose file's services. The first one's volumes are still on the disk.
From a chat
tickets.services.startwithcomposeFileset to the name starts that Compose file. If another Compose file of the repository is running, passstopOthers: trueto switch. Without it nothing starts, and the answer says to passstopOthers.tickets.services.statuslists the Compose files to choose from and the ones found but not listed. Add each withcomposeFiles.setup.set(add, name, path).- A repository's first Compose file, for a repository with no rig settings whose checkout the Box does not share yet, also shares that checkout with the Box from its next start. Its card says so after the change: change the Compose files of shop-api: add “Mailer” → mailer/compose.yaml (the default). It also shares /Users/you/shop-api with the Morie Box from the Box’s next start: chats in the Box can read and change its files. From a chat in the Box such a change always asks the owner, even with
composeFiles.setup.setset to Always. - Refusals: a rig that is starting cannot be switched; ask again when it has finished. A rig in use (a chat on its ticket replying or waiting on a permission, or an active terminal) is not switched; try again when it is idle. If the running one cannot be stopped, the new one is not started and the answer gives the reason. A name that is not listed is refused with the names to choose from.
Starting and looking
Press Start on the repository’s row. The row shows progress while the rig starts. Expand it to see each service’s state, address and memory use.
- Open the web service’s address to try the app in your browser. For other services, copy the address to use it elsewhere.
- Logs opens the rig’s output. A service’s own Logs button opens its output directly.
- Restart starts the rig or service again. For a rig that gets secrets after Morie restarted, Morie reads its values again and Docker makes the containers that get them again with them (
up -d --force-recreate): the whole rig, or the service you restart and every service that gets a secret, so none keeps an old value. Rebuild does the same for what it builds and for every service that gets a secret. - Stop stops the rig's containers, as
docker compose stopdoes. They keep their data and their logs, and the next Start starts them again; Compose makes a container again only when what it is given changed: its Compose file, or a value. - A stopped rig's Logs are Docker's own, read from its stopped containers. They are gone when the rig is deleted, its data is reset, or the Morie Box is reset.
- A stopped rig's secret values stay in its stopped containers, in the Morie Box, until the containers are removed: Docker keeps a container's environment while the container exists. Morie holds the values as long as the containers exist, so a stopped rig's Logs, and a chat's
mrigoutput about it, show each one as[secret:NAME]. Morie lets them go only when the containers are removed: Delete, a reset of the rig's data, a Reset of the Morie Box, or the worktree, ticket or repository going away. When one of those goes, the rig is brought down, running or stopped, within a minute while the Morie Box runs, or within a minute of its next start when it is off; its volumes are kept. Delete and a reset also bring down the containers of a Compose file the rig used before a switch, keeping that file's volumes. A Base rig's project that another folder's Compose project also has is left alone (see the Base rig line above), and Morie keeps holding the values. A stop or restart of the Morie Box keeps them held, since the containers stay. Morie lets go of every rig's values when Morie quits; whatmrigshows then is under Docker from a chat (mrig). To remove the values, delete the rig (Remove worktree with Also delete this ticket's rig) or reset its data.
Under Settings → This Mac → Rig addresses, set up Rig addresses to use names such as t12-web.shop.morie.test. Without those names, use the local address shown on the service’s row.
A rig's status
How it works. A running rig’s status is what Docker says about its containers (as docker compose ps --all shows them). Morie reads it again every time the card or a chat looks, every 30 seconds while the rig runs, and after Morie restarts; it never keeps an older answer over Docker’s. What the card’s header says:
- Running · 14 min: every service is up. A finished one-time job counts as up.
- Running · api restarting, in red. While Docker itself says api is restarting, api keeps restarting: it exited with code 1 is under it. The Compose file gives api a restart policy (
restart: always,on-failureorunless-stopped), and Docker is bringing it back, or started it again within the last 2 minutes. It reads Running again once it has run 2 minutes steady. One notice is sent for each such crash loop. - Running · api stopped, in red, with api stopped: it exited with code 1 under it: api is down while the rest of the rig still runs.
- Failed · api exited (1): nothing of the rig is up and api exited with that code. A service that is still restarting keeps the card at Running · api restarting;
tickets.services.statussays failed: api keeps restarting (exit 1) · 3 restarts, where the count is Docker’s own restart count for that container.
Docker’s own stop gives exit 0, 143 or 137. That service counts as stopped, not failed. When the rest of the rig runs, tickets.services.status reads running, and the card reads Running · api stopped with the code for 143 or 137, and plain Running for exit 0. When every service stopped that way, for example after mrig compose stop, the rig reads Stopped outside Morie, and each service keeps its code. A 137 that Docker marks as killed for lack of memory is a failure: api exited (137).
A failed rig is not stuck. When Docker brings its service back, the next look reads Running again. That happens through the restart policy, or through your own mrig compose up -d or mrig compose start. A service that is still down keeps its exit code.
Limits:
- Docker counts only the restarts its restart policy made. A container that Compose recreates starts again at 0, and so does every container after a Box restart.
- A Start that failed before any service ran keeps its reason until the next Start. So does a Start that left its containers created but not started.
Set it up. Nothing to set up. To see it work, take a made-up project shop with services web, api and worker, where api has restart: always:
- Press Start on the shop rig. The header reads Running.
- api crashes, and Docker starts it again. For the next 2 minutes the header reads Running · api restarting in red, and
tickets.services.statussays failed: api keeps restarting (exit 1) · 1 restart. - Once api has run 2 minutes without crashing, the header reads Running again. Only one notice was sent for that crash.
- Without the restart policy, an api that exits with code 1 reads Running · api stopped until you press Restart on its row, or until
mrig compose up -d apibrings it back. Then the header reads Running again, after a restart of Morie too.
From a chat. tickets.services.status (and mrig ps) reads the same status the card does. It gives the rig’s state and reason, such as failed: api exited (1), failed: api keeps restarting (exit 1) · 3 restarts or running, and each service’s state: api exited (1), api keeps restarting (exit 1), api stopped (exit 137), or api (restarted 2 times) for one Docker brought back. mrig run and mrig shell use this same read to find the container. To see why a service failed, run mrig logs api (or tickets.services.logs). To bring it back, run mrig restart api (or tickets.services.restart).
Run a service once
Some services are one-off jobs, such as a migration or a config check, and the rig keeps them off with a Compose profile. Run once runs one service a single time in the rig’s own project and network, even when a profile keeps it off. The run ends with its exit code. The rig’s saved profiles stay as they are, and the rig must already be started.
From a chat, use mrig once [-r REPOSITORY] SERVICE [COMMAND…] in a terminal, or the tickets.services.runOnce tool. mrig once prints the output as it comes; the tool returns the output and the exit code when the run ends. For example, in shop-web, a migrate service has profiles: [jobs]; mrig once migrate runs it. A command after the service name replaces the service’s own and runs with no shell, so a pipeline needs sh -c '…'. Under Ask, Morie asks you first, as for other rig actions. The run gets the rig’s own secrets in the environment of the compose process on this Mac, as a Start does; they are not in the command Morie builds, on the permission card (which shows only the service and command) or in History, and the output you or the chat read has each secret value replaced by [secret:NAME], but only when it is printed as it is: an encoded or cut-up value is not recognised. A chat is refused when the rig is not started, when the service is not in its Compose files, and when that service is already running once. Start the rig, fix the name or wait for the run to end, then try again.
Ports in a ticket
How it works. A ticket's rig keeps every port its Compose files write, at the ticket's own address in the Morie Box, so two tickets run the same files at once. On this Mac each port gets a port of its own from the project's range (Settings → Repositories and worktrees → Ports), chosen at Start and kept for the rig. The card shows both, and MORIE_PORT_<SERVICE> holds the right one wherever you are. The Base rig keeps the written ports on this Mac's 127.0.0.1, as on any Docker; if another rig or program holds one, the Base rig takes the next free port in the project's range, and its card shows it. A ticket running alone is no longer at localhost:<written port> on this Mac. It is at its own port shown on the card. The Base rig keeps localhost:<written port>.
Set it up. Nothing to set up.
From a chat. tickets.services.status gives each service's ports and URLs.
Names of a ticket
How it works. Each ticket's services are named by the project's name pattern (Settings → Rigs → Names and addresses; see Settings → Rigs). On Morie's own domain the default is t{ticket}-{name}.{project}.morie.test, so ticket 12's app is at https://t12-app.shop.morie.test; on a repository's own domain it is t{ticket}-{name}.{domain}, such as t12-app.example.test. {name} is the service's name, or the names set on the repository's card in Settings → Rigs → Names and addresses, or declared in its Compose file; a service can have several names. The ticket's number can come before or after the name: {name}.t{ticket}.{domain} gives app.t12.example.test. Morie's certificate for these names is trusted on this Mac only. A name that no service declares goes to the service chosen in Other names of a ticket go to, so one service can answer several names itself. When two repositories of a ticket have a service with the same name, the first repository in the project keeps the plain name and the other's is <service>-<repository>. The default for Other names of a ticket go to is the service with an App URL when the project has one repository with one; otherwise None, and a name no service declares gets No rig answers at this name. Names are answered for one open Morie project at a time.
Set it up. Example: shop's proxy service answers dashboard, billing and docs, and its web service answers www. 1. In Settings → Rigs → Names and addresses, on shop's card, give proxy the names dashboard, billing and docs and web the name www in the Names fields (each is saved when you leave it). 2. In the same page, on Names · this project, set Other names of a ticket go to to proxy in shop. 3. Start the rig on #12. The Addresses line reads https://t12-dashboard.example.test · t12-billing.example.test · t12-docs.example.test · t12-www.example.test · other t12-… names: proxy, and each name opens with Morie's certificate. A pattern Morie refuses says why under the row, for example Each part between dots can have at most 63 characters. for a name part of 64 characters or more.
From a chat. tickets.services.status gives each service's address and the rig's variables; MORIE_URL_<SERVICE> is its name. A chat cannot change the pattern or the choice: the owner does, in Settings → Rigs → Names and addresses.
When a rig's address answers
How it works. A service's name answers once its published port has answered HTTP (or HTTPS) when Morie looked. A Start, with or without the wait, and a Restart look as their last step and give Morie's proxy the rig's names before they answer. So when the card or a chat reads running, every name in its Addresses line, and every MORIE_URL_<SERVICE> that is an https:// name, answers at once. Limits:
- A service that starts answering HTTP only after the Start has answered gets no name yet. Its
MORIE_URL_<SERVICE>ishttp://127.0.0.1:<port>, and the Addresses line names it as not answering yet. Morie looks again every 5 seconds for the first minute from when the Start began, then every 30 seconds, up to 10 minutes from then; after that, press Probe again. The name answers from the look that finds it. - After a Stop, the rig's names are dropped at Morie's next check, about every 30 seconds and longer on a busy Morie Box. Until then a request to one reads The rig at <name> did not answer.; after it, No rig answers at this name.
- No rig answers at this name. is never kept by the browser, so the name answers as soon as a rig holds it again.
Set it up. Example: project shop, with services web and api, rig addresses on in Settings → This Mac → Rig addresses, and the repository's own domain example.test. 1. On ticket #12, open Rigs and press Start, with Start waits until the rig is ready on (Settings → Rigs → Starting and turns). 2. The row reads Starting and then Running. Its Addresses line reads https://t12-web.example.test · t12-api.example.test. 3. Open https://t12-api.example.test: it reaches api at once.
From a chat. Start with the wait: tickets.services.start with wait: true, or mrig up --wait in a terminal. When it answers running, read MORIE_URL_<SERVICE> from its answer or from tickets.services.status (MORIE_URL_API is https://t12-api.example.test) and use it straight away. Answers that are not ready say why:
- api was not ready after 3 min: …: the rig is left running. Each name answers as soon as its service answers HTTP.
MORIE_URL_<SERVICE>ishttp://127.0.0.1:<port>: that service had not answered HTTP yet. Readtickets.services.statusagain after a few seconds; the owner can press Probe again once the 10 minutes are over.
Your own domain
How it works. A ticket's names can end in your own domain in one of three ways, chosen on the repository's card in Settings → Rigs → Names and addresses (Also answers at, for a repository's own domain) or by the Domain field in Settings → This Mac → Rig addresses (for every repository).
- Morie answers a part of your domain: type a domain you own with no sites on it yet, such as dev.example.test; Morie checks it before using it. It works on this Mac and in the Morie Box, and its names stop resolving while Morie is closed.
- Morie answers only the names it makes: for a domain that has sites of its own, such as example.com. On this Mac Morie answers only the open project's ticket names by its pattern (any ticket, any service: t12-web.shop.example.com under the default pattern on the Domain, t12-web.example.com on a repository's own domain) and the exact names under the domain. Every other name, such as www.example.com, resolves on the internet as before, and nothing changes at your DNS provider. Underneath, macOS sends Morie only the names under the part of the domain the pattern sits in (shop.example.com for t{ticket}-{name}.{project}.{domain}; the whole domain for t{ticket}-{name}.{domain}), through one file in /etc/resolver. Morie answers its own names there itself and passes every other name there to this Mac's own DNS servers (the ones in /etc/resolv.conf), giving back their answer unchanged. Limits: a name on the internet that fits the pattern, such as t1-beta.shop.example.com, can't be reached from this Mac while Morie answers it; while Morie is closed, names under that part don't resolve on this Mac (turn Rig addresses off to give them back); lines in /etc/hosts keep working, also while Morie is closed; names follow the open project; the choice is per Mac and is kept per domain, so typing example.com into Domain again later uses it again without asking; the names Morie passes on go to this Mac's main DNS servers, never to a VPN's own DNS for the same domain (split DNS) or an encrypted DNS profile, so with a VPN that serves names under the domain those names don't resolve on this Mac and the questions for them go to the main servers instead; a reply too large for one UDP packet does not come through. Inside the Morie Box these names don't reach a rig: use the ticket's variables there; every name of the domain resolves in the Box as on the internet.
- Your own record points here: at your DNS provider add one wildcard record, such as *.example.test pointing to 127.0.0.1 (the way's own help names the record for the domain you typed). Real names under example.test, such as www.example.test, keep resolving as before, also while Morie is closed. Inside the Morie Box these names don't reach a rig: use the ticket's variables there.
Set it up. Example: shop's repository uses example.test. To let Morie answer a part of it: 1. In Settings → Rigs → Names and addresses, on shop's card (the Addresses line of a rig opens it with Names and addresses…), type dev.example.test under Also answers at, keep Morie answers every name under it and press Enter (leaving the field saves it too); the row says Saved, and the Mac asks for its password once. 2. Start the rig: https://t12-web.dev.example.test opens. To keep example.test's real sites: 1. At your DNS provider add one wildcard record, *.example.test pointing to 127.0.0.1. 2. On the same card type example.test, choose My own wildcard record points it at this Mac; choosing a way saves it (a click, or Space or Enter on it; the arrow keys only move between the ways). 3. Start the rig: https://t12-web.example.test opens, and www.example.test resolves as before.
To use a domain with sites of its own, example.com, for project shop: 1. In Settings → This Mac → Rig addresses, turn Rig addresses on and press Set up…; the Mac asks for its password once, and macOS once more to trust Morie's certificate. The Proxy row then reads Running · ports 80 and 443. 2. Type example.com in Domain and leave the field. It is refused (below), with the button Answer only Morie's names under example.com…. 3. Press it. The dialog lists exactly the names Morie will answer: Ticket names by this project's pattern, t{ticket}-{name}.shop.example.com, such as t12-web.shop.example.com and the exact names under example.com. 4. Press Use example.com; the Mac asks for its password once. The Domain row now reads Morie answers only its own names under example.com; every other name resolves on the internet., and Which names… shows the list again. 5. Start ticket 12's web rig: https://t12-web.shop.example.com opens, and https://www.example.com still opens the real site. For a repository's own domain, choose Morie answers only the names it makes on the repository's card instead; choosing it saves it. After a change of the pattern, or opening a project whose pattern sits in another part of the domain, the Proxy row shows Set up again…; press it, and the Mac asks for its password once. Two projects that share the domain with {project} in their pattern sit in different parts of it, so each switch between them asks again.
Refusals. Under Morie answers every name under it, a domain that resolves on the internet is refused. On the repository's card: example.com resolves on the internet, so Morie would hide its sites on this Mac if it answered every name under it. Use a part of it with no sites of its own, such as dev.example.com, choose Morie answers only the names it makes, or choose My own wildcard record. In Settings' Domain: example.com resolves on the internet, so Morie would hide its sites on this Mac if it answered every name under it. Use a part of it with no sites of its own, such as dev.example.com, or let Morie answer only the names it makes. When Morie could not finish looking the domain up: Morie couldn't check example.com on the internet just now. Try again, choose Morie answers only the names it makes, or choose My own wildcard record. (in Settings: … Try again, or let Morie answer only the names it makes.). Pressing Enter in the field asks again. The three ways wait for a domain: with the field empty they are drawn dashed and the row says Type the domain these names should end in, such as shop.example.test. The three ways apply to it. While a way saves, the way you clicked shows its own mark (◌) and Saving… If this Mac asks for its password, enter it there.; a way shows as chosen (◉) only once it is stored, and you can always choose the stored way again (the first included). If a way does not save, the card goes back to what is stored and the way you clicked says why, Not saved: <reason>.; if only the repository's write failed, it adds that this Mac already answers the domain in this way and which domain the repository still has, so choosing the way again finishes it. Clearing the field and leaving it removes the repository's domain (the choice of way for that domain stays kept on this Mac, per domain); until you leave the field, the cleared field only makes the ways inert and the stored way keeps its mark. Text typed while a save runs is kept and saved when you leave the field. Esc in the field puts the saved domain back. Under Morie answers only the names it makes a domain many owners share is refused: co.uk is shared by many owners, so Morie can't answer names under it. Use a domain of your own under it, such as example.co.uk. A failed Use reads Not saved: <reason>. The domain is as it was. A project keeps at most 100 domains under its own record: At most 100 domains under your own record.
From a chat. No tool sets the Domain or a domain's way: the owner does, in Settings → Rigs → Names and addresses. tickets.services.status (and mrig ps) gives each service's address, such as https://t12-web.shop.example.com, and MORIE_URL_<SERVICE> holds it inside the ticket's rigs. On this Mac, a name under a domain set to Morie answers only the names it makes that is not Morie's (www.example.com) answers as on the internet. A name of the internet's that fits the pattern, such as t1-beta.shop.example.com, reaches Morie's proxy instead: a request to it gets No rig answers at this name. unless a rig of ticket 1 holds it, and the real site can't be reached from this Mac.
What your project must accept
How it works. Morie keeps your files as they are. Hostnames your project writes in its settings, its front end, its database or an outside service (a redirect address, an allowed origin) are your project's to change. To follow the ticket, build them from MORIE_TICKET, the ticket's number, which is set in a ticket's rig, terminals and chats and is unset on Base: APP_HOST: ${MORIE_TICKET:+t${MORIE_TICKET}-}app.example.test gives app.example.test on Base and t12-app.example.test on #12. A file can also read MORIE_URL_<SERVICE> (a service's name as a URL) and MORIE_PORT_<SERVICE> (its port). Let your web server accept names of the project's pattern. What your files name outright is shared by every ticket, as the table below says; to keep one per ticket, put the project name in it: name: ${COMPOSE_PROJECT_NAME}-data. MORIE_ADDRESS is a ticket rig's own address in the Morie Box, such as 192.168.127.12; it is 127.0.0.1 for the Base rig and in terminals and chats on this Mac. It is set for the rig's Compose process and for Box and Mac chats and terminals, beside MORIE_PORT_<SERVICE> and MORIE_URL_<SERVICE>.
Set it up. Example: shop's web service calls its api by address. 1. In compose.yaml, under web, add environment: { API_URL: "http://${MORIE_ADDRESS:-127.0.0.1}:8081" }. 2. Start #12's rig: web gets API_URL=http://192.168.127.12:8081.
From a chat. A chat on this Mac or in the Box reads $MORIE_TICKET and $MORIE_ADDRESS in its shell; tickets.services.status lists the rig's variables.
What a ticket's own address does not cover
- A container on the Box's own network (
network_mode: host), a Box chat and a Box terminal reach a written port on this Mac's side, which is the Base rig or nothing. Use the ticket'sMORIE_URL_<SERVICE>andMORIE_PORT_<SERVICE>there, or its name. - A port no rig of your ticket has published is answered by this Mac, as with Docker Desktop. A port of your ticket's rig that is stopped gets no answer (see Borrowing the Base rigs).
- A container that calls another ticket's name or port reaches its own ticket on that port.
- Tickets can reach each other's address in the Morie Box, as Docker allows. Tickets are not a security boundary.
- A
docker compose uptyped in a terminal does not go through Morie: its ports go to 127.0.0.1 as on any Docker, not to the ticket's address. Use Start. - Anything your files name outright (a volume, a network, an image) is shared by every ticket, as on any Docker.
- A container whose way out is a network your files name outright is not routed to its ticket: its calls to host.docker.internal reach this Mac.
- Rig names are answered for one open project at a time: the one that started its names first on this Mac. Another open project's rigs are reached at their ports on the card.
- Under a domain your own record points here, use the ticket's variables inside the Morie Box.
- Two projects that use the same domain and pattern give the same ticket number the same name; add {project} to one of them.
- An address with a written port, such as http://localhost:4517 or http://app.example.test:4517, opened on this Mac reaches whatever holds 4517 on this Mac: the Base rig that writes it, a container started outside Morie, or another program. A ticket's rig never holds a written port on this Mac; use its name or the port on its card.
- Live reload and websockets go over https (wss://). A ws:// address written into a front end does not reach the rig.
What your files name outright is shared by every ticket, as on any Docker. To keep one per ticket, put the project name in it (see What your project must accept):
| written in the files | between two tickets | | --- | --- | | a volume or network with its own name:, or external | shared: one volume or network, the same data | | a volume or network without name: | separate (the rig's Compose project prefix) | | container_name: | the second ticket's Start fails with Docker's error | | an image name a service builds (image: app:dev + build:) | shared tag: the last build wins | | a host script deleting a volume by its written name | it acts on the one shared volume (with name:), or misses the prefixed one | | pulled images and build cache | shared (one download, one disk copy) |
When a ticket's rig can't start
How it works. A Start that cannot give the ticket its own address or a port is refused before anything runs. The card's header says Can't start: … in amber, with a line under it:
- Can't start: no free address. All 240 ticket addresses in the Morie Box are in use. Mark a finished ticket's rigs Done to free one. A ticket's address is freed once the ticket is finished (moved to a done status, or archived) and none of its rigs runs. Stop the rigs of a finished ticket, or move a ticket whose rigs are stopped to a done status, then Start again.
- Can't start: no address in the Box. The Morie Box could not take an address for this ticket: <why>. The reason is the Box's own words, or it cannot route this ticket, or the ticket no longer holds its address. Restart the Morie Box (Settings → This Mac → Morie Box), then Start again.
- Can't start: port 4517 is taken. Port 4517 is taken in the Morie Box on every address by proxy. Publish it on 127.0.0.1, or stop it. Publish that port on 127.0.0.1 in the Compose file, or stop the container that holds it, then Start again.
- Can't start: network back can't be routed. back sets its own bridge name (com.docker.network.bridge.name), so Morie can't route this ticket's calls on it. Take that option out of the Compose file. Take the com.docker.network.bridge.name option out of the Compose file, then Start again.
- Can't start: no free ports. No free ports: this rig publishes 3 ports, and the project's port range 41000–41009 has 1 free. Rigs holding ports: #13 Gift cards 41003–41005. Make the port range larger in Settings → Repositories and worktrees (the card's Open Repositories button), then Start again.
A rig that started and then had a service fail is not a Can't start: its header reads Running · api stopped in red, or Failed · api exited (1) when nothing of it is up. It reads Running again once Docker brings the service back (see A rig's status).
Set it up. Nothing to set up.
From a chat. tickets.services.status gives the rig's refusal line.
How a rig gets secrets
How it works. A rig gets a secret in one of two ways, and never asks for it while it starts:
- Its Compose files name it.
${NAME},$NAME,${NAME:?message}and the other${…}forms, or a top-levelsecrets:entry withenvironment: NAME. The value fills that place when Compose reads the files. The Secrets article's Secrets in a rig has the Start line and its reasons. - Secrets for services. In the rig's Change… dialog, the row Secrets for services gives a secret to a service as a variable of the same name, with no change to the repository's Compose files. At Start, Morie's own generated Compose file (the override, rewritten on every Start) names the variable under that service's
environment:with no value, such asPAYMENT_KEY:. Compose then copies the value from its own environment into that one service. Only the services you chose get it.
Either way, the rules are the same:
- Scope. The secret's scope must cover the rig's repository: Project-wide, or Repositories with that repository. Also use secrets from, in the Terminals picker, is for terminals only and never applies to rigs.
- Agent commands. Always and Ask reach a rig; Off reaches nothing. A rig cannot ask, so an Ask secret goes in without a card.
- When. Values are read at each Start and again at Rebuild; Restart keeps what Start read. A change in Secrets for services applies at the next Start.
- No file. Morie writes no value to a file: not the override, the rig's record, History, the set-up file or the card. The value is only in the process that runs Compose and in the containers it starts; Docker inside the Box keeps a container's environment with the container, so
docker inspectthere shows it to whoever may run Docker in the Box. - Morie’s own environment. The process that runs a rig’s Compose takes only
HOME,USER,LOGNAME,TMPDIR,LANGandSSH_AUTH_SOCKfrom Morie’s own environment, never the rest of it. Beside those, a Compose file’s${NAME}and a value-lessenvironment:entry (such as- NAME) get only the rig’s own variables, its.envor env file, and its secrets. A variable set in the terminal you opened Morie from does not reach a rig: put it in the rig’s.env, or make it a secret. - Kept out. A name that starts with
DOCKER_,COMPOSE_,BUILDKIT_orDYLD_, ends in_PROXY, or isSSL_CERT_FILEis never given. A name that starts withMORIE_is refused too: Morie keeps that prefix for its own variables. - Version. Secrets for services need Morie 0.56.8 or later. A project's set-up file that carries them is a version 3 file. An older Morie cannot use a project set-up file or a repository's
.morie/setup.jsonthat carries them.
The choice is saved in Morie for the repository, so its Base rig and every ticket's rig share it. A repository's own .morie/repo.json never sets it, and Export… in the dialog does not write it there. A project's set-up file (Settings → Project → Save file…) and a repository's .morie/setup.json carry it, as names only; using one shows the line Secrets for services api ← MAIL_API_KEY, PAYMENT_KEY; worker ← MAIL_API_KEY and asks first. Settings → Secrets lists each choice under Used by as Rig settings · api.
Set it up. Example: shop-api's api service needs PAYMENT_KEY, and the shared Compose file does not mention it.
- In Settings → Secrets, press Add a secret…. Name
PAYMENT_KEY, keep the reference, type the value. Scope Repositories with shop-api. Agent commands: Ask. Press Add secret. - Open the ticket's Rigs, expand shop-api and press Change…. The row Secrets for services has one line per service; before the rig has ever started it says Start the rig once to list its services.
- On api, press Add a secret…. The menu lists the secrets in this repository's scope that are set to Always or Ask and that api does not have yet; choose PAYMENT_KEY. Its chip shows on the api line. For a secret not added yet, type its name in the field and press Add. A name that cannot be given is not added, and one of these shows under the field: DOCKER_HOST is kept out of Compose by Morie: names that start with DOCKER_, COMPOSE_, BUILDKIT_ or DYLD_, names that end in _PROXY, and SSL_CERT_FILE are never given; rename the secret., MORIE_PORT_API starts with MORIE_, a prefix Morie keeps for its own variables. or Use capital letters, digits and _, not starting with a digit. The × on a chip takes the name off that service.
- Press Save, then Start. The card's Secrets foot shows
PAYMENT_KEYgreen, resolved. A name with no secret in scope shows red, with the tip No secret named PAYMENT_KEY in this repository's scope. and Add a secret…. - To check it arrived without printing it, run in a terminal on the ticket:
mrig run api sh -c 'test -n "$PAYMENT_KEY" && echo set'. It printsset.
The card's foot has the link How a rig gets secrets, which opens this page.
From a chat. A chat cannot change Secrets for services: the owner does, in Change…, or by using a set-up file (setup.file.apply, which asks the owner and shows the line above). When a chat starts the rig, a secret set to Ask that was not on the card shows as Not on the list you allowed: NAME. Start the rig yourself to give it. tickets.services.rebuild reads the values again; a change to the choice reaches the rig at its next tickets.services.start, after the owner saves it (Restart and Rebuild keep what the last Start wrote). When a chat asks to start a rig (tickets.services.start while Settings → This project → Rigs, Agents start and stop rigs, is Ask), its card names the Ask secrets the rig will get: The rig gets these secrets set to Ask, without asking again: PAYMENT_KEY, SESSION_SECRET. Once that card's Always allow is pressed, chats start rigs with no card, so the rig takes its Ask secrets with no card naming them. Saving a name that cannot be given refuses with the words in step 3. A project set-up file that says version 2 but holds Secrets for services is refused: This file can’t be used: it says version 2 but holds the secrets for services of a rig, which only version 3 files have. Nothing was read into Morie. Ask for a new file: Settings → Project → Save file leaves values out.
Rig addresses inside the Box
How it works. With rig addresses on, a service or chat in the Box can use a name such as t12-web.shop.morie.test too. Morie answers every name under the address domain from the Box's own network, at any depth, and the name leads to this Mac's Morie proxy, so the browser and the Box see the same address. A domain under Morie answers only the names it makes is not answered in the Box: there every name of it resolves as on the internet, and a ticket's names under it don't reach a rig (use the ticket's variables). The answer is set up again at every Box start. Nothing runs inside the Box for names, and nothing needs setting up there.
Each ticket's rigs keep the ports their files write, at the ticket's own address in the Morie Box. On this Mac, a ticket is reached by its own names with Morie's certificate, and each port by a port of its own (shown on the card). Written names and ports on this Mac reach the Base rig. Inside the Box, a call to host.docker.internal or a written name reaches its own ticket on the ports that ticket's rigs have published, and gets no answer while that rig is stopped; a port no rig of the ticket has published reaches this Mac. Box chats and terminals use the ticket's variables. Tickets can reach each other by address, as Docker allows.
Set it up. Same as on the Mac: 1. Open Settings → This Mac → Rig addresses and set up Rig addresses (the Mac asks for its administrator password once). 2. Start the Morie Box and a rig. 3. In a terminal in the Box (Open a terminal in the Box), curl https://t12-web.shop.morie.test answers like the browser does. If a name is answered and the page loads, it worked. If the Box was running when you set addresses up, restart it once (until then the Box line on the Rigs card reads Rigs reach this Mac through host-gateway after the next Box start.).
From a chat. A chat in the Box, or a rig service, simply uses the name; there is no tool. tickets.services.status gives each service's address, https://t12-web.shop.morie.test, to use. If a name does not answer, the card line above says why.
Morie's certificate authority is added to the Box, so https names verify for chats and terminals in the Box. A rig's containers get nothing from Morie: a service that calls an https name trusts it once its Compose file mounts the Box's bundle (the Box's own roots plus Morie's, so public sites still verify) and points at it, for example:
services:
web:
volumes: ["/etc/morie/ca-bundle.crt:/etc/morie/ca-bundle.crt:ro"]
environment: { SSL_CERT_FILE: /etc/morie/ca-bundle.crt, REQUESTS_CA_BUNDLE: /etc/morie/ca-bundle.crt, NODE_EXTRA_CA_CERTS: /etc/morie/ca-bundle.crt }
The bundle is there while rig addresses are on and the Box has started since.
Reaching the Mac itself from a rig is explained under Rigs reach this Mac.
A name stays answered until the Box next starts after you change or remove the domain, or turn rig addresses off. The Rigs card says so: The Morie Box keeps answering shop.test until it next starts.
Exact names
How it works. An exact name is a single name such as status.example.com that you point at this Mac, for programs on the Mac and for rigs, chats and terminals in the Box. The name itself answers 127.0.0.1 on the Mac; nothing under it does (a name under a listed one stops resolving there, and the real site at the listed name cannot be reached from this Mac while it is listed). Which rig answers depends on the port in the address (http://status.example.com:3000), not on the name. An exact name never gets a Morie certificate and is not a rig address. The list is per Mac, up to 100 names, each tied to a repository of a project; a repeat inside one project is refused. On the Mac each name gets its own file in /etc/resolver that Morie writes and marks; one Morie did not write is left alone, and a line in /etc/hosts wins. A browser with its own secure DNS may ignore it. In the Box a name reaches the Mac at the gateway address, through the Box's hosts file and, for rig containers, Compose extra_hosts (not for containers that use network_mode service:, container: or none, and not for a name Compose itself gives the container, below). A rig that is already running gets a new name the next time it starts, because Compose writes extra_hosts when it makes a container.
What an exact name changes: how the Mac, the Box's chats and terminals, and rig containers that don't already have that name in Compose reach the rig: they reach the Mac, and from there the port in the address. What it never changes: inside a rig, a name Compose itself gives a container resolves to that container, as in plain Compose. These names are a service's name, its container_name and its network aliases (on a network of the rig's own that the asking container also joins), and, inside the container itself, its own hostname (and hostname.domainname). Morie leaves such a name out of extra_hosts for those containers, so Docker's own name service answers it. A dev server can then listen on its own alias, and the other services on its network reach it by that alias. Limits: a name Compose gives only on a shared network (one marked external: true, or one whose name: is fixed, so every ticket's rig of the repository joins it), or only in another Compose project (another repository's rig, or a second Compose file of the same repository), keeps the Mac route, because a shared network can answer for another ticket's container. So do containers on network_mode host or bridge, which have no Compose names. links aliases are not read, so a name given only that way keeps the Mac route. A one-time job's names are left out while it may run, so once it has exited they go to Docker's name service and on upstream, as in plain Compose; once Morie has marked it done they get the Mac route again. A rig that was running before Morie had this behaviour picks it up at its next start.
Set it up. Example: shop's shop-web is tried at status.example.com:3000.
- Open Settings → This Mac → Rig addresses and turn Rig addresses on. The first time, Set up rig addresses lists its steps (Install the Morie proxy helper (ports 80 and 443), *Resolve .morie.test on this Mac, Resolve 1 exact name on this Mac when names exist, Trust Morie's certificate authority). Show what runs shows the script; Set up runs it and ticks each step. The Mac asks for its password once.
- On the Exact names row press Edit…. The dialog Exact names on this Mac has a New name field and a Repository picker.
- Type
status.example.com, chooseshop-web, press Add (or Enter). A refusal appears in red under the row. - Press Save…. While rig addresses are on, the Mac asks for its password (Morie needs your password to set up rig addresses on this Mac.); the dialog waits (Waiting for your Mac password… · Esc cancels). Cancelling says Not saved: the password was cancelled. Your names are as they were. A saved list closes the dialog and the row reads 1 name · on this Mac and in the Morie Box. Other row lines: 1 name · 1 not set up on this Mac yet, … · no longer in a repository, … · on this Mac; the Morie Box at its next check. With addresses off, Save asks nothing and the names are set up when you turn addresses on.
- Start the rig. In a browser on the Mac,
http://status.example.com:3000reaches the service published on port 3000; in the Box, the same name reaches it too.
Example of a name that is also an alias: shop's Compose file gives its web service the alias shop.example.test on its network front, publishes port 4300, and starts the dev server bound to shop.example.test:4300; its api service also joins front. Add shop.example.test as an exact name for shop as in steps 2 to 4, then start the rig. Inside web the name is web's own address, so the dev server starts listening; api reaches http://shop.example.test:4300 at web; on the Mac, the same server answers at the port on the rig's card (for a Base rig, http://shop.example.test:4300).
A project's set-up file can carry names per repository (a version 2 file; a version 1 file holding them is refused). On import, tick each name you want under Names this file asks to reach this Mac; none is ticked until you do, a ticked name reaches this Mac instead of the internet, and a name that already resolves on the internet says Resolves on the internet (addr). Unticked names are not set up; add them later here. The same name ticked under two repositories refuses the import: status.example.com is already in the list.
Refusals: A full name such as status.example.com: letters, digits, hyphens and dots.; A whole domain goes in the Domain field. (a *, or fewer than three parts, except under .test or .localhost); <name> is under local, which is kept for special uses; Morie can’t answer it. (also arpa, home.arpa, onion, invalid); <name> is one of Morie's own names.; <name> is already answered here: it is under <domain>.; <name> is already in the list.; At most 100 names.; Choose a repository. A failed save reads Not saved: <reason>. Your names are as they were.
From a chat. No tool reads or changes exact names: only the owner does, in this dialog or by import. A chat in the Box or a rig just uses the name. If a name does not answer in a rig that was already running, tickets.services.restart it. To see what a name answers inside a container, run mrig exec <container> getent hosts <name> where the image has getent: a Compose name gives the address of the container that has that name, any other exact name gives 192.168.127.254.
Ports reach this Mac
How it works. The Morie Box forwards ports the way Colima does. Every host port that a running container publishes on 127.0.0.1 or 0.0.0.0 in the Box, TCP and UDP, answers on this Mac's own 127.0.0.1 at the same number, whoever started the container: a rig's Start, a docker run -p or docker compose up, or a chat's mrig command. A ticket's rig is the exception: its ports answer on this Mac at the ports its card shows. Morie follows Docker's own events, and looks again when the Box starts and about once a minute, so a port goes out when its container starts and comes back when it stops. Ports never reach your network, only this Mac. Because they are on this Mac's 127.0.0.1, a container reaches another project's published port through host-gateway (see Rigs reach this Mac).
Two kinds of port are never forwarded: Morie's own ports (its MCP server, its name answerer and its proxy), and 80 and 443 while rig addresses are on, because Morie's proxy answers those. A container can still publish them inside the Box.
What you lose: a port that another program on this Mac already uses (on 127.0.0.1 or on every address) is not moved. The container starts and its port does not reach this Mac. Stop the other program; the port reaches this Mac within about a minute. At most 256 ports reach this Mac at once, the lowest numbers first.
Set it up. Nothing to set up. Example: shop-api's Compose file publishes 4517:80 for web, and you start it without the rig. 1. In a terminal of the ticket, run mrig compose -p shop-api-try up -d in the checkout. 2. On this Mac, curl http://localhost:4517 answers the web service. 3. Run mrig compose -p shop-api-try down: port 4517 no longer answers. UDP works the same way, for example 9999:9999/udp.
From a chat. A chat starts containers with mrig and a Docker command (the rigs.docker tool), or a rig with tickets.services.start; their published ports reach this Mac by themselves. No tool forwards or refuses a port by hand.
Rigs reach this Mac
How it works. Morie gives the Box Docker's host-gateway, the way Docker Desktop does: it sets host-gateway-ip in the Box's /etc/docker/daemon.json to the Mac's gateway address, 192.168.127.254, and that address goes to this Mac's own 127.0.0.1. A Compose file maps a name to it with extra_hosts. Morie gives no name of its own for the Mac; you choose one. The setting reaches Docker when Docker restarts. Morie restarts Docker by itself only when nothing runs in the Box; if a rig or chat is running, it waits for the next idle moment or the next Box start, and the Rigs card's Box line reads Rigs reach this Mac through host-gateway after the next Box start. until Docker has restarted.
Set it up. Example: shop's api calls a tool on this Mac at port 9000. 1. In shop-api's Compose file, under api, add extra_hosts: ["host.docker.internal:host-gateway"]. 2. Start the Box and the rig (let an idle Box restart, or restart it once while the Rigs card's Box line reads Rigs reach this Mac through host-gateway after the next Box start.). 3. In the rig, http://host.docker.internal:9000 reaches the Mac's port 9000. If the name does not answer, the Box's daemon.json has not been updated yet: restart the Box.
One rig reaching another. Inside one ticket, a rig reaches another repository's rig through host-gateway on the port its file writes, and the call lands in the same ticket whatever other tickets run. Example: shop-web calls shop-api on a ticket. 1. In shop-web's Compose file, under web, add extra_hosts: ["host.docker.internal:host-gateway"] and set its API address to http://host.docker.internal:6120, the port shop-api's file publishes. 2. Start both rigs on the ticket: the call reaches that ticket's shop-api. If the ticket has no worktree of shop-api, or its shop-api rig has never started there, the call goes to this Mac, which is the Base rig or nothing; while the ticket's shop-api rig is stopped, the call gets no answer (see Borrowing the Base rigs). Base rigs reach each other the same way, on the written ports.
From a chat. No tool changes it. A chat edits the Compose file, then tickets.services.restart for the rig; box.restart while that Box line shows (its refusals are listed below under Rigs come back after a Box restart).
If Morie cannot write it, the line says so, and a bad daemon.json is left alone: <path> is not JSON; Morie leaves it as it is, or Docker does not accept the new /etc/docker/daemon.json (<words>); Morie leaves it as it is; an overall failure reads The Box could not be set up for rig addresses: <last line>.
A service that speaks HTTPS
How it works. With rig addresses on, Morie asks each published port of a running rig whether it speaks HTTP over TLS: a TLS handshake that finishes, then a HEAD request that gets an HTTP answer. A port that does is HTTPS, even if it answers a plain request with an error page. A TLS port that does not speak HTTP, such as a database, is not a web port and gets no address. An HTTPS port's link on the row opens https://127.0.0.1:<port>, and its rig address is answered over HTTPS to the service. Morie does not check the service's own certificate, which is usually self-signed; this happens on 127.0.0.1 only, and your browser may show its own warning for the local link. Morie remembers a port's answer for as long as its container lasts: a restart keeps it, a rebuild or a new container asks again.
Set it up. Turn on Rig addresses (see above) and start the rig. Nothing else: the rig's row and address follow what each port answers. With rig addresses off, Morie does not ask, and the link stays http://127.0.0.1:<port>.
From a chat. A chat reads the same links in tickets.services.status; MORIE_URL_<SERVICE> is the service's rig address while rig addresses are on; a service gets it only where its Compose file writes ${MORIE_URL_<SERVICE>}, which Morie fills at Start. It cannot change how a service answers.
Rigs come back after a Box restart
How it works. When the Box restarts, each rig running at that moment stops with Stopped: the Morie Box is restarting and is started again by itself once the Box is back, each through its ordinary Start with its ordinary refusal, and with the secrets it had before: an Ask secret it did not hold is not given. It is not started again when it was in error, when its own Stop was under way, when its ticket is archived, or when rigs are switched off; the restart line then leaves out that the rigs start again. One that cannot start does not stop the others. A rig that is starting, rebuilding or waiting is not counted as running. The board then says The Morie Box restarted. shop-web did not start again. with Start it again.
Docker in the Box may also bring containers back with the Box by itself, through their restart policy (restart: always or unless-stopped). This applies to a rig stopped with the Box by hand or by a crash, and to one that was failed when Morie restarted the Box. Such a rig reads Running (or Failed with the service that is still down) at the next look, as described under A rig's status. Its ticket's address is routed again when the Box starts, and Docker's restart counts start again at 0. A rig whose containers did not come back keeps Stopped with the box. A rig that Morie starts again itself is left to that Start.
Set it up. Nothing to turn on: it is how a restart works. To see it, run a rig, open Settings → Project (after importing a set-up file, or on the first run's last step), or Settings → Repositories and worktrees after Add a repository… while the Box runs, and press Restart the Morie Box on the line that says repositories with a rig will be shared at its next start: the rig row says Stopped: the Morie Box is restarting, then the rig runs again by itself. That line's Restart is guarded: it is dimmed with the reason while other work runs in the Box. There is no Restart button in Settings → This Mac → Morie Box; there, Stop then Start is the way.
From a chat. A chat restarts the Box with box.restart (not read-only chats: box.restart is refused for read-only chats.). It asks the owner each time; the card lists the rigs that stop. It is refused, before the owner is asked and again when the Box acts, with The Morie Box was not restarted: <reason>. Restart it when that has finished. The reason is one of: a chat is still running in it; a terminal is still running in it; a checks run is still running in it; a tool is being installed in it; the Morie Box is being compacted; another Morie Box action is under way; another project's work is still running in it; or a named rig is starting, rebuilding or waiting in the line for this Mac (#12 Shop's rig, or shop-web (Base)'s rig). The way forward is to wait for that work to end and ask again. A Box-size card that Morie shows for a running Box (Morie Box: change its size, tagged Restarts) restarts it when the owner presses Yes, and refuses nothing. With the Box not running: The Morie Box is <state>; it restarts only while it runs. Stopped but not started again: The Morie Box stopped but did not start again: <reason>. A success reads The Morie Box restarted. Started again: shop-web. When some rig could not start it adds Could not start: <rig>: <reason>. Start them again from the board. With no rig running: The Morie Box restarted. No rig was running.
Chats and terminals in the Box
When you start a chat or terminal, choose This Mac or Morie Box. Settings → Project, under Where chats and terminals run, sets the default for new ones, for each project. Agents sign in inside the Box separately from their sign-ins on your Mac.
With the Box set up, a chat on this Mac uses Docker through mrig only: plain docker there is refused, unless your shell's startup files set DOCKER_HOST themselves, for the Box and for your own Docker Desktop or Colima alike (Settings → This Mac → Morie Box, The Docker endpoint, says how). With no Box set up, plain docker in a chat on this Mac uses the Docker contexts in ~/.docker.
A chat in the Box can work with your repositories and ticket worktrees. A repository's own checkout is shared with the Box when the repository has a rig, or once you start a chat or terminal in the Box in that checkout (see Settings → This Mac → Morie Box): chats in the Box can then read and change its files, and its .git stays read-only. A shared checkout stays shared; nothing in Morie takes the share back yet. A chat in the Box cannot share a checkout itself. Its sessions.start or tickets.sessions.start in a checkout the Box does not share yet, or in a folder inside one, is refused, and so is its resume, fork or fresh start (sessions.resume with fresh) of a chat there: Nothing was started: a chat in the Morie Box cannot share shop-api's checkout (/Users/you/shop-api) with the Box. Start it in a ticket's worktree or in the Box home, or ask the owner to start a chat or terminal in the Box in that checkout. A chat that a chat in the Box starts, with either tool, always runs in the Box, whatever Where chats and terminals run says. Internet controls whether things in the Box can reach the internet; when it is off, Claude Code and Codex can still reach their own services.
Docker from a chat (mrig)
How it works. mrig is the Box’s Docker for a chat. Any Docker command works after it, as it would on a Docker you installed yourself: mrig images, mrig compose up -d, mrig push, mrig login, mrig logout, mrig tag, mrig buildx bake, mrig compose push. A few words are Morie’s own rig commands instead of Docker’s, such as mrig ps, which shows the rig’s state (see A rig’s own commands and -r, below). mrig acts on the Morie Box’s Docker only, never on another Docker on this Mac. Each command is asked about in Settings → MCP (the tool rigs.docker; Ask by default, closed to read-only chats), and the permission card shows the whole command. For a chat on this Mac the command’s output is cleaned: a value that matches a stored secret of a rig is shown as [secret:NAME]. Morie can hide only the values it holds: those of a rig it started, restarted or rebuilt since Morie last started. A rig whose values Morie does not hold, running or stopped, is not cleaned: mrig inspect or mrig logs on it shows its secret values as they are, and Morie’s own Logs for it show nothing. Start a stopped rig, or Restart or Rebuild a running one (mrig restart, mrig rebuild), to have it cleaned again. Cleaning covers what a command prints in plain text. What a command writes to a file (mrig cp, mrig save -o) or prints in another encoding (--format with printf) is not cleaned. A live terminal (a command that needs one) is not cleaned, and says so. For a chat in the Box nothing is cleaned: it gets Docker’s output as it is, except for the Compose commands Morie runs on the rig (below), which are cleaned for every chat.
A rig’s secrets. A rig gets its secrets with its Start: mrig up, mrig restart and mrig rebuild (see How a rig gets secrets). A chat’s mrig compose up, create, run and scale on the rig make containers with those same secrets. Morie runs these commands itself, with the rig’s own Compose files, the file Morie generates for it and the secrets it holds from its Start, so the containers come out as a Start makes them and the rig’s card reads the same. mrig compose restart goes the same way and restarts the containers as they are, with what they started with. The values go to Compose only, never to the chat. The output comes as it is made, with each value shown as [secret:NAME], and the exit code is Compose’s. Ctrl-C stops the command; stopping an attached mrig compose up stops its containers, as Ctrl-C does with Docker. If nothing reads the output for 30 s (the chat’s shell has gone), the command is stopped. A run gets no input and no terminal, in a chat and in your own terminal alike, unlike Docker’s own: for an interactive shell or a command that reads input, use mrig compose exec SERVICE … in the running service, which has the rig’s secrets; a run that runs as typed (below) has a terminal but none of the rig’s secrets. The rig must be started, or the command is refused with The shop-api rig of #12 is not started: start it first. mrig up starts it. A rig that runs with secret values Morie no longer holds (Morie restarted since its Start) is refused with The shop-api rig of #12 is running, but Morie no longer holds its secret values: restart it (mrig restart). Stopping, deleting or resetting the rig ends such a command first, and a Stop removes what a run -d, or a run without --rm, left. These run as typed, with no secrets: the other Compose commands (ps, logs, exec, config); a command with a Compose option other than --profile, --ansi, --progress, --parallel, --dry-run or the rig’s own -p, such as -f or --env-file; a run with --env-from-file; and a command run where COMPOSE_FILE, COMPOSE_PROJECT_NAME, COMPOSE_PROFILES, COMPOSE_ENV_FILES or COMPOSE_PATH_SEPARATOR is set. Any other COMPOSE_ setting does not change this: the command still goes through Morie.
Signing in to a registry. Each chat has its own Docker configuration, which Docker writes when the chat signs in, so the sign-in lasts for that chat’s later commands. It is a file under Morie’s data on this Mac (inside the Box for a chat in the Box), readable by your Mac user, so another chat could read or copy it: a chat is not walled off from another chat here. Your keychain and ~/.docker are never read or changed. It goes with mrig logout REGISTRY, when the chat closes, and at a Reset of the Morie Box (Settings → This Mac → Morie Box); one closed while the Box was stopped goes when the Box next starts. There are two ways in:
mrig login REGISTRY -u USER --secret NAME: Morie reads the password from Settings → Secrets (an Ask secret asks you on a card; Off is never given) and runs Docker’s own sign-in with it, on this Mac or in the Box. The password is never on the command line, in the chat’s environment, on the permission card or in History. The sign-in file Docker writes holds it encoded, not encrypted, and the chat can read that file, as with Docker anywhere.mrig login -u USER --password-stdin REGISTRYwith the password piped in, as Docker does, for example a short-lived token from a cloud registry:example-cloud registry-token | mrig login -u USER --password-stdin registry.example. The password is whatever the chat pipes in.
One form is refused, before the owner is asked and at Always too: a password typed on the command line (-p, --password): Not run: mrig does not take a password typed on the command line. Sign in with --password-stdin (pipe the password in) or with mrig login REGISTRY -u USER --secret NAME (Morie reads the password from Secrets). A --secret with anything else is refused too: Not run: --secret NAME goes with one registry and -u USER, and nothing else: mrig login REGISTRY -u USER --secret NAME. A command that names another Docker (--host, --context, --config, --tls…) is refused: Not run: mrig uses only the Morie Box’s Docker with its own settings, never another Docker or its sign-ins. A command mrig cannot read is refused with the same words. Docker’s own words are shown for everything else.
How to set it up. Nothing: it is there in every chat on a ticket with Rigs on and the Box running.
- Add the registry password in Settings → Secrets as
REGISTRY_TOKEN, scoped to the repository, with Agent commands set to Ask or Always. - In the ticket’s chat run
mrig login registry.example -u USER --secret REGISTRY_TOKEN. The owner allows the command and then the secret. Docker answers Login Succeeded. mrig push registry.example/shop-api:1now works in the same chat.- With
${DB_PASSWORD}in shop-api’s Compose file and the rig started,mrig compose up -din the ticket’s chat recreates what changed withDB_PASSWORDset, and the output shows[secret:DB_PASSWORD]wherever the value would be printed.
From a chat. Run mrig <docker command>; mrig --help lists the rest. It answers with Docker’s output and exit code. Refused: Rigs off (Rigs are disabled in Morie. Enable them in Settings → Rigs.), a read-only chat, the Box not running, the rig not started (The shop-api rig of #12 is not started: start it first. mrig up starts it., or The shop-api rig of #12 is running, but Morie no longer holds its secret values: restart it (mrig restart).), or one of the lines above. The way forward is to remove the option that names another Docker, or to pipe the password with --password-stdin or give it with --secret NAME. Plain docker in a shell is a different Docker and does not see the rig.
A rig’s own commands and -r
How it works. Some mrig words are Morie’s own rig commands: ps and status, up and start, up --cancel, stop and down, restart, rebuild, use, use --end, done and logs are the same as the Start, Stop and Restart buttons and the tickets.services tools, with the same rules (the owner may need to allow them); once is the tickets.services.runOnce tool; compose, shell and run are the Box’s Docker through the rigs.docker tool (Settings → MCP). Each works on one repository’s rig, and every one of them takes -r REPOSITORY (or --repository REPOSITORY) to say whose. For all of them:
- Without
-r, Morie picks the rig of the chat’s primary repository, or the only rig when there is one. With one repository you never need-r.shellandrunchoose differently: they take the rig whose Compose file has the service, and when several rigs have it, the one where it runs. - In a chat on a ticket,
-rnames one of the ticket’s repositories. In a Base chat it names the project’s checkout whose Base rig to act on. - The name matches in any case:
-r APIis the same as-r api. - When there are several rigs and none is picked, the command is refused and names
-r: This project has two Base rigs (web, api): pass -r <repository> to mrig, or repository to the tool. In a chat on a ticket it reads This ticket has two rigs (web, api): …. - A name that has no rig is refused with the rigs there are: No rig for repository "docs" in Base. Rigs: web, api (on a ticket: … on your ticket. Rigs: …).
mrig shellandmrig rungo into the container Morie names from the rig’s status. Their own refusals are listed under From a chat below.mrig execis Docker’s exec: it takes a container, no-r. For a rig’s service usemrig run -r REPOSITORY SERVICE COMMAND….mrig --helplists every command with its-r. Chats on a ticket also find the list in Morie’s context (its Rigs part); a Base chat reads it frommrig --help.
How to set it up. Nothing to turn on. Example: a project shop with two repositories, web and api, each with a compose.yaml at its root.
- Start both Base rigs from Base → Rigs.
- In a Base chat, run
mrig stop. It is refused: This project has two Base rigs (web, api): pass -r <repository> to mrig, or repository to the tool. - Run
mrig stop -r api. Morie stops api’s Base rig and says so; Base → Rigs shows api stopped and web still running. - Run
mrig use --alone -r web, thenmrig use --end -r webwhen you are done: your turn on web’s rig is given back.
From a chat. Each command, with -r REPOSITORY anywhere after the command’s word; for shell, run, once and compose it comes before the service or Compose’s own words:
mrig ps -r REPOSITORY,mrig status -r REPOSITORY: the rig’s services, their state, ports and health.mrig up -r REPOSITORY [--wait](orstart): starts the rig;mrig up --cancel -r REPOSITORYleaves the waiting line for memory.mrig stop -r REPOSITORY(ordown): stops the rig and keeps its saved data.mrig restart -r REPOSITORY [SERVICE],mrig rebuild -r REPOSITORY [SERVICE]: the rig, or one service, again; rebuild builds its images first.mrig use -r REPOSITORY [--alone] [--note LINE]: takes a turn on the rig, alone if asked;mrig use --end -r REPOSITORYormrig done -r REPOSITORYgives it back.mrig logs -r REPOSITORY SERVICE: the service’s latest output.mrig shell -r REPOSITORY SERVICE,mrig run -r REPOSITORY SERVICE COMMAND…: a terminal in, or one command in, the service’s running container. SERVICE is the service’s name in the Compose file. Morie picks the container from the same status the card shows (see A rig's status), read when the command runs. When the service has several replicas, it takes a running one. Without-r, it takes the one rig whose service is running. The refusals say where and why: - worker is not running in this ticket's rig of shop-api: it exited with code 1. In a Base chat: … in the Base rig of shop-api: …. - worker keeps restarting in this ticket's rig of shop-api: it exited with code 1. - worker is not running in this ticket's rig of shop-api: the rig is stopped, or … yet: it is starting. - worker runs in three Base rigs: use -r shop-web, -r shop-api or -r shop-admin. - worker is in two rigs of this ticket, running in none: use -r shop-web or -r shop-api. - No rig of this ticket has a service worker. Rigs: shop-web, shop-api. - With-r: This ticket's rig of shop-api has no service worker. Services: api, db. - worker is not running in this ticket's rig of shop-api: Morie could not read its containers just now (…): try again.
The way forward: mrig logs -r REPOSITORY SERVICE for why it stopped, and mrig restart -r REPOSITORY SERVICE to bring it back.
mrig once -r REPOSITORY SERVICE [COMMAND…]: runs the service once (see Run a service once).mrig compose -r REPOSITORY …: Docker Compose with that rig’s Compose project.
Each prints Morie’s answer, or its refusal on stderr with exit code 1: the refusals above (pass -r with one of the names they list, or start the rig), Rigs off, a read-only chat, or the owner saying no. A usage mistake (an unknown option, a missing service) prints the usage with exit code 2. The tools take the same choice as repository, for example tickets.services.stop with repository: "api".
A ticket's volumes: Start from, seeds and Reset
How it works
A ticket's rig gets its own volumes, which Compose makes empty. Start from lets each new volume begin as a copy instead. That avoids an empty database or a long import on every ticket. It works for any service that keeps its state in a volume (a database, a cache, an uploads folder), whatever runs in it: Morie copies the volume's files and never reads them.
- Start from is a setting of the repository's rig (Change… → Volumes), so every ticket's rig of that repository starts the same way. Each volume Compose names per project gets one of three choices: - Empty: as Docker makes it, the service fills it. This is the default. - A copy of the Base rig's db-data: the same volume in the repository's Base rig. - Seed …: a saved seed of the same repository and the same volume.
- A volume with a fixed
name:orexternal: trueis shared by every rig already: it shows the grey line Shared by every rig: its Compose file names it shop-uploads. and is never copied. A bind mount (a folder of the worktree in a service'svolumes:) is never copied either: it is the worktree's own files. - Start from applies only when a ticket's volume does not exist yet: a new ticket's rig, or after a Reset. A volume that is already there is kept and never copied into. A Base rig always starts as Docker starts it.
- Compose makes the volume first (as
docker compose createdoes), then Morie fills it in the Box, then the rig starts. On the card the start line reads Copying db-data from seed shop-small… 120 MB of 240 MB. Afterwards a grey line says where it came from: db-data started from seed shop-small (saved 10 Nov) · 12 Nov 14:02. - A copy stops what writes to its source, as Docker Desktop's volume clone does. While the Base rig's volume is copied, the Base rig's services that use it stop, then start again; its card says Stopped while #12 copies db-data; it starts again when the copy ends. (while it is saved as a seed: Stopped while db-data is saved as a seed; …) A source is copied for one ticket at a time; a second ticket's card says Waiting: the Base rig's db-data is being copied for #14. #12's copy starts when that one ends. There is no copy of a running source. A seed is never running, so starting from one never touches the Base rig.
- Size. On today's Box disk every copy is a full copy: each ticket uses the volume's size again. Where the Box's disk allows it, the copy shares unchanged blocks (copy-on-write).
- One-time jobs. When every volume the rig keeps started from a copy, the one-time jobs already done in every copy's source count as done in the ticket too, as long as their definition is unchanged. Morie compares a job's definition as Compose writes it, with the checkout's own folder taken out. So a job that builds from the repository (
build: ./import) or mounts one of its folders (./seed:/seed) carries from the Base rig or a seed to a ticket. A job whose definition holds a value that differs per ticket (a${MORIE_…}variable, for example) does not carry: it runs again in the ticket. If any volume starts empty, no job counts as done, because a job may be what fills it. - Seeds are copies of a rig's volume kept in this Mac's Morie Box. They are listed under Seeds on the Rigs page with name, where they came from, size and age. They stay on this Mac: Export… writes a Base copy choice into
.morie/repo.jsonbut never a seed (Seeds stay on this Mac: db-data is exported as Empty.), and a reset of the Morie Box removes them. - What a copy reaches. A copy holds whatever its source holds, personal data and secrets included, and the ticket's chats and terminals can read it.
- Reset. Reset db-data… on a service's ⋯ menu deletes everything in that one volume (all that db wrote since 12 Nov 14:02). The rig stops and starts again, and the volume is made again as Start from says now. Reset #12's data… on the rig's ⋯ menu does the same for every volume, one line each (db-data: a fresh copy of seed shop-small (240 MB), cache: empty). Nothing is kept as a backup. The worktree, its code and other tickets are not touched.
- Only volumes Docker keeps itself (driver
local, no options) can be copied or saved as seeds. Another volume driver or a local volume with options (an nfs share, tmpfs, a bound device) is refused with words, and Empty still works.
Set it up
An example with the made-up project shop: a repository shop with services api and db, and a volume db-data used by db.
- Start the Base rig of shop from Base → Rigs, and let db fill db-data (by your own import, a one-time job, or
mrig once). - On the Base rig's card, open db's ⋯ menu and choose Save db-data as seed…. Name it shop-small and press Save seed. db stops while it is copied, then starts again. Seeds on the Rigs page lists shop-small · shop · db-data · Base rig, with its size.
- Press Change… on the rig. Under Volumes, open Start from for db-data, choose Seed shop-small and press Save.
- Start #12's rig. The card says Copying db-data from seed shop-small… while it starts, then db-data started from seed shop-small (saved 12 Nov) · 12 Nov 14:02.
- To get the seed's data back later, open db's ⋯ menu on #12 and choose Reset db-data…, then Reset db-data. #12's rig starts again with a fresh copy.
To start from the Base rig's live data instead, choose A copy of the Base rig's db-data in step 3. The Base rig must have started once, so the volume exists.
From a chat
tickets.services.seedswithaction: "list"answers at once with each seed's name, repository, volume, where it came from, size and saved time (mrig seed ls).tickets.services.seedswithaction: "save",volume: "db-data"andname: "shop-12-before-migrate"saves the chat's rig's volume as a seed (mrig seed save db-data shop-12-before-migrate). It answers Saved seed shop-12-before-migrate (240 MB) from #12's db-data. db stopped while it was copied and is running again.tickets.services.seedswithaction: "remove"andnameremoves a seed (mrig seed rm shop-small). It answers Removed seed shop-small (240 MB freed). When a repository's Start from names it, the answer adds shop's db-data starts from it: a new ticket's rig of shop will not start until Start from is changed in Change… → Volumes.tickets.services.resetwithvolume: "db-data"resets one volume (mrig reset db-data): Reset #12's db-data: deleted 1.0 GB; it is now a fresh copy of seed shop-small. db is running. Withoutvolumeit resets the whole rig's data (mrig reset). Reset is for a ticket's rig only.- Each tool has its own row in Settings → MCP: save, remove and reset ask the owner each time unless that row is set to Always; list never asks. Both are refused for read-only chats and while Rigs are off. Start from is a person's setting in Change…; a chat reads it from
tickets.services.status(each volume'sstartFromandstartedFrom). - Refusals, as the tools and
mrigsay them (the card's reason is the same): - The Base rig of shop has no volume db-data yet, so #12's db-data cannot start from its copy. Start the Base rig once, or choose Empty in Change… → Volumes. - Seed shop-small is not in the Morie Box any more. Choose another Start from for db-data in Change… → Volumes. - Not enough room in the Morie Box to copy db-data (2.1 GB): 1.4 GB is free. Free space on the Rigs page, or make the Box's disk larger in Settings → This Mac → Morie Box. - Copying db-data stopped: the Morie Box ran out of disk. The part copied was removed; the Base rig's db started again. - db-data is kept by the volume driver nfs, not by Docker itself, so Morie cannot copy it. Choose Empty in Change… → Volumes. - db-data is a local volume with options (type=nfs), so its data is not kept in the Morie Box itself and Morie does not copy it. Choose Empty in Change… → Volumes. - The Base rig of shop is running a one-time job (seed-db), so its db-data cannot be copied now. Wait for the job to end, then start #12's rig again. - After a copy: Docker could not start db again after the copy (…). Start that rig again. - Saving: The Base rig of shop is running a one-time job (seed-db), so its db-data cannot be saved as a seed now. Wait for the job to end, then save it again., A seed named shop-small is already in the Morie Box., A name of at most 60 letters, digits, spaces, dots, dashes and underscores., Not enough room in the Morie Box: the copy needs 240 MB and 120 MB is free. …, The Morie Box is not running. - Reset: No volume cache in the shop rig's Compose files., and uploads is shared by every rig (its Compose file names it), so Reset does not delete it.
The way forward is in each sentence: start the Base rig once, choose another Start from in Change… → Volumes, free space, or wait for the job.
When the Box's disk is full
How it works
Every rig keeps its images, volumes and databases on the Morie Box's one disk. Its size is Disk size in Settings → This Mac → Morie Box (32 GB unless you change it; 8 to 2048 GB). When a service of a rig stops with an error, Morie looks at that disk once, at that moment: it reads how much the Box uses inside, and the last 20 lines of every service's log. The disk counts as full at 95 % of its size or with under 1 GB free, or when a log says No space left on device (or errno 28). This works the same for any service and any Compose file; a bare ENOSPC alone does not count, because some tools use it for other limits.
- When it is full, the rig's card says Failed · The Morie Box's disk is full (32 GB) and, in red, The Morie Box's disk is full (32 GB): the service stopped. with Free space… and Make it larger…. A quieter line under it keeps the service's own reason, for example db exited (1) · its log: No space left on device · 31.8 of 32 GB used. Fix in a chat is not offered there: a chat cannot free the Box's disk or restart the Box to grow it.
- When a log says no space but the Box's disk has room, the space ran out somewhere else, such as this Mac's disk under a shared folder or a limit inside a container. The reason then says db's log says No space left on device, but the Morie Box's disk has 20.0 GB free: check this Mac's disk., with no Make it larger….
- Any other failure keeps its own words, such as api exited (1).
- On the Rigs page the Box strip warns earlier, at Warn when the disk is (85 % unless you change it): The Morie Box's disk is 87% full · Free space… · Make it larger…. Once full it reads The Morie Box's disk is full (32 GB): rigs that write to it stop.
Free space… opens the Clean up dialog titled Free space on the Morie Box, whose first line says why it opened (The Box's disk is full: 31.8 of 32 GB used, so shop's rig of #231 stopped.). Build cache and untagged images are always removed; data left over from finished tickets and images no rig uses go only when you tick them. Nothing running is touched. Make it larger… offers three sizes: 8 and 16 GB more and 64 GB while 64 GB is more than 16 GB away (from 32 GB: 40, 48 and 64 GB); after that, 8, 16 and 32 GB more (from 48 GB: 56, 64 and 80 GB; from 64 GB: 72, 80 and 96 GB), never past 2048 GB. A size this Mac has no room for, keeping what Keep free keeps, is dimmed. At the next start (the default and highlighted button) saves the size, and the disk grows the next time the Box starts. Grow to 64 GB and restart the Box restarts it now. It says first what that stops (Restarting the Box now stops what runs in it: 2 chats.), and the rigs that were running start again. Growing keeps images, volumes, the databases in them and the agents' sign-ins. The disk never shrinks (see Settings → This Mac → Morie Box).
Set it up
Nothing to turn on. An example with the made-up project shop (web, api, db) on #231:
- An import into db fills the Box's disk. #231's Rigs tab shows Failed · The Morie Box's disk is full (32 GB) and the red line with Free space… and Make it larger….
- Press Free space…. The dialog lists what it can remove. Tick #212 Coupon codes at checkout · ticket archived if you no longer need its data, then press Clean up and delete 1 volume. The dialog closes and a notice says what was removed.
- Or press Make it larger…, choose 64 GB and press Grow to 64 GB and restart the Box. The Box restarts, and Settings → This Mac → Morie Box shows of 64 GB on its Disk row.
- Press Start on #231's rig. The red line goes and the rig runs.
From a chat
tickets.services.status (and mrig ps) gives the same reason: shop (t231-gift-cards): failed: The Morie Box's disk is full (32 GB): the service stopped. Under it comes the line The Box's disk: 31.8 of 32 GB used; db exited (1), its log says No space left on device. A chat cannot free the Box's disk or make it larger: ask the owner to press Free space… or Make it larger… on the rig's card (Settings → This Mac → Morie Box has both too). Its JSON adds boxDisk to the stack, for example { "full": true, "usedBytes": 34144990003, "sizeGb": 32, "cause": "db exited (1)", "logSaid": true }. A run once that ended because of it says db-seed was stopped in the shop rig of #231: The Morie Box's disk is full (32 GB): the service stopped. A Start that fails on it says The shop rig of #231 did not start: The Morie Box's disk is full (32 GB): the service stopped. The way forward is the owner's: a chat reports the reason and asks the owner to press Free space… or Make it larger…, then starts the rig again.
When something is off
- No worktree yet? Prepare the ticket’s worktree first.
- A rig cannot start? Read the reason on its row. Logs shows the output when a service fails.
- A rig stopped while idle? Press Start. Stop idle rigs after in Settings → This Mac → Rigs on this Mac controls that wait.
- Start says Restart the Morie Box to see this checkout or … this worktree? The Box was started before that folder was shared. Restart the Box (the Restart the Morie Box line in Settings → Project, or
box.restart), or let an idle Box restart at the next Start. - Updated to 0.56.8? Reset the Morie Box to get its security fix: Settings → This Mac → Morie Box → Reset the Morie Box…. Reset deletes its images, volumes and the agents' sign-ins, so first export anything you keep only in a rig's volumes. See Settings → This Mac → Morie Box.
- The Box is short of room? The rig's card and the Rigs page say so, with Free space… and Make it larger… (see When the Box's disk is full). Settings → This Mac → Morie Box shows disk use and Clean up…. Saved database data is not removed automatically.
See also: Settings → This Mac → Morie Box · Settings → Rigs · Worktrees · Checks and scripts · Secrets