Ingot (ingot) is a single-binary manager for local dev environments, in
any language. Every project folder gets a *.test address with real,
locally-trusted HTTPS behind a shared Caddy reverse proxy, plus shared
databases, Mailpit and public sharing. Ingot runs the project in its own
production-like container, or points the address at an app you run yourself,
and projects nobody is using sleep until the next visit.
How a project runs depends on what's in it:
- PHP: a prebuilt FrankenPHP image for the PHP version you pick, with WordPress detected.
- Laravel for Rust: detected from
Cargo.toml, with its own image. - Any other app (Go, Node, Rust, Python, ...): built from the project's own Dockerfile, or pulled as an image, on the port it listens on.
- An app you run yourself (
go run,cargo watch,vite):ingot link <port>serves it from your computer.
No server component, no config files. Every command shells out to Docker on your machine; all state lives in environment variables or Docker container labels.
- One container per project directory: PHP on FrankenPHP, Laravel for Rust, or any app from its own Dockerfile or image
- A shared Caddy reverse proxy with automatic HTTPS for
*.testdomains (self-signed, locally-trusted CA — no browser warnings) - Shared DNS so
*.testresolves without touching/etc/hosts - A branded "No project here" page for any
*.testdomain that isn't running, instead of a bare connection error - An Ingot error page, pointing at
ingot logs, when a PHP or Laravel for Rust project dies with no output, instead of the browser's blank "HTTP ERROR 500" - Optional MySQL/PostgreSQL, and Mailpit for email testing
- Automatic WordPress detection for PHP (extra extensions, hardening, live-reload)
ingot link: a.testaddress, with HTTPS and sharing, for an app you run yourself on your computer (go run,cargo watch,vite)- A choice of prebuilt image, your project's own Dockerfile, or an arbitrary pulled image — per project, switchable any time
- Per-project env vars injected into the container, same as production
- Pause/resume everything with one command
- Scale to zero: idle projects are stopped and start again on the next visit (see docs/IDLE.md)
Download the binary for your platform from the latest release - e.g. for Linux/amd64:
curl -fsSLo ingot https://github.com/aliasproject/ingot/releases/latest/download/ingot-linux-amd64
chmod +x ingot
./ingotOther platforms: swap ingot-linux-amd64 for ingot-linux-arm64,
ingot-darwin-amd64, ingot-darwin-arm64, or ingot-windows-amd64.exe.
On first run, ingot installs itself to /usr/local/bin/ingot and walks
you through database configuration. If it's interrupted partway through, just run
ingot install again — every step is safe to repeat, so it picks up from
wherever it left off rather than starting over.
- Docker installed and running
- macOS or Linux (Windows via WSL2)
No GitHub account or registry login is needed: the container images on
ghcr.io/aliasproject are public.
cd /path/to/your/project
ingot startOn the first ingot start, Ingot works out what the project is and asks
only what applies to it:
- PHP: how to build the image (only if the project has a
Dockerfile: use it, use the prebuilt Ingot image, or pull a different image), then the PHP version (prebuilt only; your own image brings its own) and the server root (defaults to/app/public). - Laravel for Rust: how to build the image (only if the project has a
Dockerfile; otherwise it uses the Laravel for Rust dev image). See Laravel for Rust. - Any other app: whether to build its Dockerfile or pull an image, the port it listens on, and how it gets your code. See Apps in other languages.
None of this is asked again on later starts — it's stored on the project's
container labels. Your project is then available at https://<name>.test.
For an app you run yourself, start it, then run ingot link <port> in its
folder instead. See Apps you run yourself.
ingot start [version] Start (or create) the project container; the version is a PHP version (PHP only), and with none an existing project keeps its own
ingot stop Stop the project container
ingot restart Restart the project container
ingot remove / rm Remove the project container
ingot status Show detailed status for this project
ingot list / ls List every project
ingot php [version] Change the PHP version (PHP, prebuilt image only)
ingot server-root [path] Change the server root directory (PHP only)
ingot image [mode] Switch image mode without recreating from scratch (prebuilt is PHP and Laravel for Rust only)
ingot port [port] Show or change the port an app listens on
ingot mount [setting] Show or change how an app gets its code
ingot link <port> Serve an app running on this computer here
ingot unlink Stop serving it
ingot image takes prebuilt, dockerfile, or pull (with a second arg
for the image to pull), or run it bare for an interactive prompt. Useful for
going back and forth while testing — e.g. ingot image dockerfile to try
your production build, ingot image prebuilt to switch back.
ingot logs
ingot exec composer install
ingot shell # shell as your host user
ingot shell --user=root # shell as root
DNS, Caddy, Mailpit, and any configured databases are shared across every project:
ingot global start
ingot global stop
ingot global restart
ingot global refresh # update the proxy's config and pages and the idle waker; runs after update
ingot global status
Projects nobody is using are stopped after 30 minutes (INGOT_IDLE_TIMEOUT),
and the next request to one starts it again. The first page load takes a
second or two longer. exec, shell and share start a sleeping project
too. A project stopped with ingot stop stays down until ingot start. See
docs/IDLE.md for how idle is detected.
ingot idle # show this project's setting
ingot idle off # never stop it (e.g. it runs a queue worker)
ingot idle 2h # its own timeout
ingot idle on # back to INGOT_IDLE_TIMEOUT
Stop everything at once to free up CPU/RAM, then bring back exactly what was running:
ingot pause
ingot resume
ingot database add
ingot database remove
ingot database list
MySQL databases get an empty root password. PostgreSQL databases get user
ingot, password ingot, database ingot. Both listen on localhost only.
A database's data lives in a Docker volume named ingot_<type>-<version>
(for example ingot_mysql-8.0). If its container is removed,
ingot global start creates it again from that volume. ingot database remove removes the container but keeps the volume: ingot database add
with the same version uses the data again, and docker volume rm deletes it.
ingot cert install # Install the CA into your system trust store
ingot cert verify # Check whether it's installed
ingot cert debug # Detailed certificate/Caddy diagnostics
ingot cert repair # Regenerate vhosts and restart Caddy
ingot status Full system status (services, network, install)
ingot update Update to the latest version
ingot check-update Check for an available update
ingot uninstall Uninstall Ingot
ingot help Show all commands
ingot mirrors production's own model for how a project's container image
is built:
- Prebuilt (the default for PHP and Laravel for Rust) — for PHP,
ghcr.io/aliasproject/php:<version>-frankenphp-dev, or the-wordpress-devvariant if a WordPress install is detected (wp-config.php/wp-load.phpin the project root). Other apps have no prebuilt image. - Custom Dockerfile — builds from the project's own
Dockerfile, the same one you'd actually deploy. If it declares build args with no default (ARG SOME_TOKEN, no=value), you're prompted for each one explicitly — nothing is silently reused from your environment or anywhere else. Args whose names look like credentials (containing e.g.TOKEN,SECRET,PASSWORD,PASSPHRASEorOAUTH, or the wordAUTH,KEY,PASS,PATorPWDbetween underscores, e.g.COMPOSER_AUTH) are passed todocker buildthrough its environment rather than its command line, and are never saved on the container:ingot rebuildasks for them again, unless you setINGOT_BUILD_ARG_<NAME>(e.g.INGOT_BUILD_ARG_GITHUB_TOKEN), which the first prompt also uses. Other recreates (ingot env,ingot php, ...) reuse the built image, so they don't ask; runingot rebuildafter editing the Dockerfile. AnARGvalue can still end up in the image's history, so for credentials prefer a BuildKit secret (RUN --mount=type=secret,id=...) in the Dockerfile. - Custom pull — pulls a specific image you name.
Switch between them any time with ingot image <mode> — no need to remove
and recreate the project.
A project whose Cargo.toml depends on laravel-rust is detected as a
Laravel for Rust app on first start. Ingot doesn't ask for a PHP version or
a server root. Its prebuilt image is ghcr.io/aliasproject/laravel-rust:dev,
which runs laravel dev against the project, so saving a file rebuilds and
restarts the app (the image is still being built; until it's published, use
the project's own Dockerfile). Downloaded crates and compiled dependencies
are kept in the ingot_cargo_registry, ingot_cargo_git and
ingot_cargo_build volumes, shared by every Laravel for Rust project, so
recreating a container doesn't mean compiling the framework again.
Whichever image it runs, Ingot sets SERVER_HOST=0.0.0.0 and
SERVER_PORT=80, which the app reads ahead of its .env, and
APP_URL=https://<project>.test, which ingot env set APP_URL=... can
replace. Trust the proxy in src/app.rs (middleware.trust_proxies(["*"])
for local development), or the app builds http:// URLs behind Caddy.
A project with no PHP in it (no composer.json, and no .php file in its root
or a folder directly under it, such as public/) but with a Dockerfile, go.mod, package.json, Cargo.toml,
deno.json, pyproject.toml, requirements.txt, Gemfile or mix.exs is
an app that runs from its own image. On first start Ingot asks whether to
build the project's Dockerfile or pull an image, and which port the app
listens on inside its container. It offers a port the Dockerfile's final
stage or the image EXPOSEs (80 or 8080 if exposed, else the lowest from
1024 up, so an SSH port next to the web one isn't picked), else 80. If the
guess is wrong, the same prompt can run the project as PHP instead.
Ingot has no prebuilt images for these languages, and doesn't ask for a PHP
version or a server root. Change the port later with ingot port 3000, which
recreates the container and points the site, and any share, at the new port.
ingot image dockerfile and ingot image pull ask for the port again.
The app gets PORT set to its port, which ingot env set can't change, so
an app that reads PORT listens in the right place. It needs to listen on
0.0.0.0, not localhost, for Caddy to reach it.
First start also asks how the container gets your code, and ingot mount
changes it later:
ingot mount none: the container runs exactly what the image built, as the image's own user, with nothing mounted. This suits a production-style Dockerfile that compiles a binary or installs dependencies into its working directory. Runingot rebuildto see code changes.ingot mount workdir: the project folder is mounted at the image'sWORKDIR(or/appif it sets none), and the container runs as you, so files it writes there stay yours. This suits a dev server that reloads on edits (air,nodemon,cargo watch). The mount hides whatever the image put in that folder, so dependencies come from your folder: runnpm installand the like there, or withingot exec.HOMEis/tmp, because a stock image usually has no home folder for your user ID; if yours does (UID 1000 isnodein the node image),ingot env set HOME=/home/nodeuses it.ingot mount /src: the same, at a path you choose.
A Dockerfile build defaults to none and a pulled image to workdir. PHP
and Laravel for Rust projects are always mounted at /app, which their
images expect.
Go, Rust and Node apps are often fastest run straight on your computer,
where the debugger and tests are. ingot link <port>, run in the project's
folder, serves the app listening on that port at https://<folder>.test,
with the same certificate, Mailpit and databases as every other project:
cd ~/code/api
go run . # listening on :8080
ingot link 8080 # https://api.test
- Run
ingot linkagain with another port to move it, andingot unlinkto stop serving it. ingot lslists linked projects, andingot shareworks for them too.- Ingot doesn't run a linked app, so it can't start or stop it: linked projects don't sleep, and while nothing answers on the port the address shows a page saying the app isn't running.
- On Linux the app can listen on
localhost,127.0.0.1,::1or every address. On Docker Desktop, if the address says the app isn't running while it is, make the app listen on0.0.0.0. - A folder can't be linked and run by Ingot at once:
ingot startrefuses in a linked folder, andingot linkin one that has a container.
On Docker Desktop and OrbStack, Caddy reaches the app through
host.docker.internal. On Linux, a host firewall such as ufw blocks that
address, and it can't reach an app listening only on localhost. So each
link gets a small relay container, ingot_link_<folder>: the Caddy image on
the host network, forwarding to the app over localhost. It listens only on
a Unix socket in Caddy's volume, so it opens no port and needs no firewall
rule. ingot pause leaves relays running; an idle relay uses no CPU.
To inject environment variables into a project's container — the same way production supplies a site's config as plain environment variables — set them explicitly:
ingot env set APP_DEBUG=true DB_HOST=ingot_mysql
ingot env unset APP_DEBUG
ingot env list
Values live in the container's labels, not in a file, and set/unset
recreate the container so the change takes effect immediately (Docker has no
way to update a running container's environment in place, and neither does
production). A stopped project stays stopped.
Ingot deliberately does not read your project's .env. The project
directory is bind-mounted (except in an app set to ingot mount none), so a framework that reads .env itself (Laravel,
for example) already sees every edit instantly with no restart. Injecting
those same keys as real env vars would only shadow the file with a stale
copy.
SERVER_NAME, SERVER_ROOT, HTTPS, and PORT are reserved for Ingot
itself and can't be set with ingot env set. In a Laravel for Rust project,
the reserved ones are SERVER_HOST, SERVER_PORT and PORT, and in an app
in another language, only PORT.
Ingot has no config file — these are the only settings, read from your shell environment:
GITHUB_TOKEN Optional; only `ingot update` uses it (falls back to
`gh auth token`), to raise GitHub's API
rate limit
INGOT_DEFAULT_PHP_VERSION Default PHP version for new PHP projects
INGOT_HOST_IP Override auto-detected host IP
INGOT_DNS_PORT DNS listener port (default: 53)
INGOT_ENABLE_SSL Enable/disable SSL setup (default: true)
INGOT_ENABLE_DNS Enable/disable DNS setup (default: true)
INGOT_AUTO_START_GLOBAL Auto-start global services (default: true)
INGOT_IDLE_TIMEOUT Stop projects idle this long, e.g. 30m, 2h, or
off (default: 30m; applied by 'global restart',
kept when unset)
- PHP: 8.5, 8.4 (default), 8.3, 8.2, 8.1, 8.0, 7.4
- MySQL: 8.0
- PostgreSQL: 16, 15, 14, 13
git clone https://github.com/aliasproject/ingot.git
cd ingot
go build -o ingot ./cmd # build the binary
go run ./cmd status # or run directly without building
go vet ./... # static checksgo test ./... covers a few packages (config, docker, idle, project,
services, share, ssl, updater); most changes are verified with
go build/go vet and by running the CLI.
See CLAUDE.md for an architecture overview if you're working
on the CLI itself.
Error: Docker is not installed or not running — start Docker first.
SSL warnings in the browser — ingot cert verify, then ingot cert repair if the CA isn't installed.
"The app returned an empty error" — Ingot reached a PHP or Laravel for
Rust project, but the app failed before printing anything. ingot logs
shows the error. For PHP, a missing vendor/ (composer install) or
.env/APP_KEY is the usual cause.
Projects set up by an older ingot get this page after ingot cert repair or
the next ingot start; an active share gets it after ingot share stop
and ingot share.
ingot install seems stuck partway through — just run it again; every
step is safe to repeat and picks up from where it stopped.
Container pull denied — the images are public, so this is almost always
an old ghcr.io login saved in Docker's config whose token has been revoked
or expired (Docker still sends it). Run docker logout ghcr.io, then
ingot doctor.