Sign in Download

Help · Settings

Settings → Rigs

The names a ticket's rigs answer at, one repository at a time, and what a repository's own Compose file says about them.

Checked against Morie 0.57.3.

In short
  • One page, Names and addresses: the project's card and one card per repository with its domain and its services; this Mac's card is This Mac → Rig addresses.
  • Each service shows its Names, Reach, Protocol and App URL, tagged from the file, yours or found.
  • A repository's Compose file can say names, a web port, a protocol and the App URL in an x-morie block; what you set here wins, and a difference is shown, never applied by itself.
For example

Project shop has shop-web and shop-api under example.test. Shop-api's Compose file calls its api service api and v1, and you want the admin service to answer every other name of a ticket.

  1. Open Settings → Rigs and scroll to Names and addresses. Shop-api's card lists api, admin and db. Api's names read api, v1 and are tagged from the file; db reads No name: not a web port.
  2. Shop-api's file also asks admin to take the other names of a ticket. The Names · this project card says so with Review; press it, read the two lines and press Use it.
  3. Type api, v1, v2 in api's Names field and press Tab. It is saved and tagged yours; the file's api, v1 is shown amber under it with Use the repository's and Keep mine.
  4. Start #12's rig. Its Addresses line reads https://t12-api.example.test · t12-v1.example.test · t12-v2.example.test ….

The page, top to bottom

Rigs (Run rigs and Agents start and stop rigs) and Starting and turns are this project's: each is saved for this project, so another project keeps its own. The rows that apply to every project are on Settings → This Mac → Rigs on this Mac: Stop idle rigs after, Wait for my answer and Private images; under them a line says Agents start and stop rigs is set for each project, on This project → Rigs., and its link opens this page at that row. While there is no Morie Box, or this project's rigs are off, those rows are greyed and keep their values, with the reason and a link (Go to Morie Box or Open Rigs). The part this page is about is Names and addresses, in cards. This Mac's domain, proxy and certificates are Settings → This Mac → Rig addresses; a line at the top of Names and addresses links there, and that section's Rigs → Names and addresses links back to this part.

  • Names. The Name pattern and Other names of a ticket go to. Under it, a line for a repository's file that asks to take the other names of a ticket (below).
  • One card per repository, headed with the Compose files it read. Its Domain row (Also answers at, with its three ways) and its Services table: Service, Names, Reach, Protocol and App URL, then First web port as the last choice of the App URL.

A Names field is saved when you leave it. The App URL is saved when you choose a service or leave its port. A domain is saved when you press Enter or leave the field, and a way when you choose it (the ways wait until a domain is typed; the way you clicked shows its own working mark and Saving…, a way is drawn chosen only once stored, and one that did not save says Not saved: <reason>. under itself); where the Mac asks for its password it asks then, and the row says Saved, with no Undo. Changes apply at each rig's next Start. The page reads the files again when you come back to the window or to the page.

The ticket's rig card shows the names read-only, in its Addresses line, with the link Names and addresses… that opens this page at the repository's card. The rig's Change… no longer has App URL or Names: its row Names and App URL says so, with Open….

How it works

Where a value comes from. Each value in the Services table carries a tag.

  • from the file: the repository's Compose file says it, in an x-morie block beside the service.
  • yours: you set it here, and it wins over the file.
  • found: the file says nothing, so Morie found it from the running service.

What the Compose file may say. A repository can say how its services are named in its own Compose file. Plain Docker, Docker Desktop and Colima ignore x- blocks, so the file keeps working everywhere. With no block, Morie finds names and ports by itself, as before. An example, for shop:

# shop-api/compose.yaml
services:
  api:
    build: ./api
    ports: ["8081:8081"]   # under ports: reaches this Mac, at port 8081
    x-morie:
      names: [api, v1]     # t12-api.example.test, t12-v1.example.test
      protocol: https      # http, https or tcp
      app: true            # the App URL
  admin:
    build: ./admin
    ports: ["8090:8090"]
    x-morie:
      names: ["*"]         # every other name of a ticket, after you review it
  db:
    image: postgres:16
    expose: ["5432"]       # under expose: inside the Box only

| Key | What it says | What Morie accepts | |---|---|---| | names | The names the service answers at, in the project's pattern. | Up to 32 per service and 64 per repository. Each is a–z, 0–9 and -, not at the start or end, at most 63 characters, no dots, no -- in the third and fourth places, written plainly (no ${…}). []: no name of its own. ["*"] alone: every other name of a ticket, once you review it. | | port | Which of its ports is the web port. | A port from 1 to 65535 that the service opens to this Mac (under ports). Morie still reaches it through the rig's own port, never the number written here. | | protocol | How Morie talks to it. | Exactly http, https or tcp. tcp gets no name. A changed protocol waits for your review. | | app | This service is the App URL. | true, on at most one service of the repository. |

Reach has no key. A port under ports reaches this Mac, and the table shows it with its port on this Mac (Reaches this Mac · port 8081). A port under expose, or none, stays inside the Box (Inside the Box only).

One home in the files. What is new here (names, the web port, the protocol, the App URL and the other names of a ticket) has one home: the Compose file. .morie/repo.json keeps what it held before (the Compose files, profiles, the .env file, the App URL's service and port, fixed ports and its names), for a team that cannot edit its Compose files. Where both give a service's names or the App URL, the Compose file wins; what you set here wins over both.

What a repository's file can never set. The domain and its way; whether Rig addresses are on; ports 80 and 443, the proxy and the packet filter; trust of Morie's certificate; the address and the port on this Mac that a service is reached at; this Mac's range of ports; exact names; the name pattern and Other names of a ticket go to (a "*" only asks; you choose); the rig's Compose project name; secrets, values from the environment and any ${…}; the .env file, the Compose entry and profiles; what a ticket's volumes start from; which host Morie's proxy reaches and whether it checks the service's certificate; how Morie's proxy talks to a Base rig; anything from a Compose override that git does not track, or from an include or extends outside the repository; and anything that asks for your Mac password. Morie reads the block only from the files the repository tracks, as they are written. A key it does not read, or may not take, is left out, and the card says which service and what kind of setting, never the value.

A difference is shown, never applied by itself. When what you typed differs from the file, the table shows The file says: api, v1 in amber under your value, with Use the repository's (removes yours, so the file's names apply at the next Start) and Keep mine (keeps yours, and this content of the file is not shown again). The same for the App URL (The file says: api, port 8081). A line under the table says what the file asked for that Morie left out, and ends with what to do next.

What waits for your review. Taking the other names of a ticket moves the names of every ticket to another service, and a protocol changes how Morie talks to a service, so these two wait. A file's own names stay inside your domain and pattern for that one service, so they apply without a review.

  • The first catch-all (names: ["*"]) applies to every ticket of the repository, so it is answered once, on Names · this project, not on a ticket's card. Review opens Where other names of a ticket go with what goes where now and what the file asks; Use it takes it, Not now keeps the line. A ticket's rig card only points here.
  • A changed protocol is shown on the rig card of a ticket (shop-api's Compose file says admin speaks https (was http)) with Review and How Morie talks to admin. A protocol seen for the first time is used.
  • A ticket's own copy. A ticket's worktree may change its Compose file. The ticket's rig card says This worktree's Compose file changes its services' names or protocol with Review; the dialog lists only what differs and applies to that ticket only once you press Use for #12. If the file changes after it was shown, the dialog says compose.yaml changed since it was shown; look at the changes again before using it and reads the rows again. A service that now reaches this Mac where it stayed inside the Box before is shown on the card (db now reaches this Mac; before it stayed inside the Box. …); Morie shows it and does not hold Start.

A Start note says when a Start's file names differ from the last Start's (shop-api's Compose file now names api: api, v1.).

Set it up

Example: project shop under example.test, with shop-web (services web, cache) and shop-api (services api, admin, db). Rig addresses are on (see The Morie Box and Rigs).

  1. Open Settings → Rigs and scroll to Names and addresses. Shop-api's card lists api, admin and db with their tags. Nothing is set yet: the names read found, or from the file where an x-morie block says them.
  2. Give api two names. In shop-api's file, under api, write x-morie: { names: [api, v1] } and commit it; or type api, v1 in api's Names field and press Tab (yours). With no block, a name typed here is the whole answer.
  3. Choose the App URL: press the radio on api's row. Its port shows; change it and leave the field to save. Press First web port to let Morie choose.
  4. For a domain of your own, type it in Also answers at (for example shop.example.test) and choose one of the three ways; choosing a way saves it, and so does pressing Enter or leaving the field. The row says Saved; the Mac asks for its password once. See The Morie Box and Rigs, Your own domain, for what each way means.
  5. Start #12's rig. Its Addresses line reads https://t12-api.example.test · t12-v1.example.test, and each name opens.

From a chat

A chat reads names and cannot change them here: the owner does, in Settings → Rigs.

  • tickets.services.status gives each service's address and the rig's variables; MORIE_URL_<SERVICE> is its first name. Its declared field answers, per service, names, reach (mac or box), protocol and app, and pushed (a name another repository has first); then ignored (what the file said that Morie left out, in words) waiting (what waits for the owner's review, in the words a chat is told) and notes (the lines under the table: Rig addresses off, a changed Start, a service that now reaches this Mac).
  • To say names in a repository, a chat edits the repository's Compose file (the x-morie block above) and commits it; Settings shows it on the repository's card.
  • A chat cannot press Use for #12, Use it or Use the repository's: a review is the owner's. Morie tells a chat: This worktree's Compose file changes its services' names or protocol; the owner reviews it on the Rigs card. Until then shop-api's own Compose file applies.
  • The refusals of the page, word for word: - A name: <name>: use only a–z, 0–9 and '-', not at the start or end. · <name>: at most 63 characters. · <name> is listed twice. · web and admin are both named www. - The App URL: A port is a number from 1 to 65535. · web publishes no TCP port 9000. - A domain: example.test 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.test, choose Morie answers only the names it makes, or choose My own wildcard record. · Morie couldn't check example.test on the internet just now. Try again, choose Morie answers only the names it makes, or choose My own wildcard record. · 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. · At most 100 domains under your own record. - A failed save of a name or the App URL: Not saved: Morie couldn't write its settings just now. api's names are as they were. (The App URL is as it was.); the field keeps what you typed, so leaving it again tries again. - A review: compose.yaml changed since it was shown; look at the changes again before using it, or Not used: Morie couldn't write its settings just now. with what still stands.
  • A refusal is never a value from the file: it names the repository, the service and the kind of setting.

See also: The Morie Box and Rigs · Settings → This Mac → Morie Box · Settings → Secrets