The container factory in Substrate

Describe it. Render it. Run it.

Describe your services once, in YAML. micro‑glue renders the whole production runtime around them (ingress, TLS, monitoring, secrets and backups) the same way on every machine, each environment with its own values. The compose file is the least of what comes out.

mg config generate -c production
docker compose up -d

Two commands, and it is running. This is what our engineers and Substrate run for you.

you write

nginx-microcelium-static:
  description: nginx ingress for the Microcelium site.
  flag: enable_nginx_microcelium_static
  service_template: web-infra/static-site-ingress.service.j2
  volume_template:  web-infra/static-site-ingress.volume.j2

config/stack.yaml, a real entry

you get

  • docker-compose.yamlthe least of it
  • stack/traefik/routing · TLS · headers
  • stack/prometheus/ grafana/metrics · alerts · dashboards
  • services/*/.envsecrets, by name
  • backups · restoreson their own schedule
193service templates in the library
every one describes itself
1000sof deployments
ours and our customers’
7stemcell images
every service runs on one
2016in production for ten years
one idea all along

See it running

A render, start to finish

Orchard Lane, an invented coffee roaster: six services described in one YAML file, rendered with one command and running behind Traefik over HTTPS in 20 seconds.
Terminal showing config/stack.yaml with six services (ingress, postgres, valkey, whoami, uptime-kuma, prometheus), each with a flag and a service template.
What you write: the whole stack in config/stack.yaml, six services, each naming a template from the library.
Terminal showing the end of the mg config generate run and a tree of the rendered stack folder: env, prometheus rules, Traefik config, certificates and redirects.
One command: the render finishes and stack/ holds the Traefik config, a local certificate authority and certificate and the Prometheus scrape and alert rules.
Terminal showing the generated docker-compose entry for uptime-kuma with volumes, network, health check and Traefik labels.
What one service becomes: the rendered compose entry for Uptime Kuma, with its health check, volumes and the Traefik routing, TLS and security-header labels nobody typed.
Terminal showing docker compose ps with six services up, then a curl over HTTPS returning HSTS, nosniff, DENY and the Microcelium platform header.
Running: every service up and the status page answering over HTTPS through Traefik with the shared security headers.

What comes out

The compose file is the least of it

Here at AxisOps we got tired of compose files that leave the plumbing as an exercise for the reader, so micro‑glue renders the lot from one YAML description.

docker-compose.yaml            ← the least of it
services/<svc>/.env            one per service
stack/
├── traefik/                   static · dynamic · redirects · security headers
├── prometheus/                scrape config · alert rules
├── grafana/                   datasources · dashboards
├── alertmanager/  loki/  tempo/  alloy/
├── mysql/init/                init SQL
├── nginx/<site>/              per-site config
├── env/                       infrastructure env
└── certs/  tools/

Ingress and TLS, metrics, logs, traces, alerting and dashboards, database init, secrets kept Vault-encrypted in your configuration repository and written into each service's environment only at render time, and backups on their own schedules all render from the same description. None of it can drift from the services it serves.

The parts people get wrong by hand are the ones nobody looks at until something breaks: a mistyped Traefik label that leaves a service unrouted, a security header missed on one site, a health check copied from the wrong service. micro‑glue renders every one of them from a template, so each is written once and a fix there reaches every service on the next render.

stack/ is disposable: delete it and a re-render rebuilds it byte for byte. The images micro‑glue builds are standard OCI images, so they run on any container runtime, Kubernetes included.

Stemcells

No Dockerfiles to write

You describe a service. You do not build an image for it.

the usual way

Dockerfile                 × 10
docker-compose.yml         × 10
.env                       × 10
traefik labels             by hand
monitoring                 "who set that up?"

with micro-glue

config/stack.yaml
config/environments/production.yaml
mg config generate -c production

Services run on stemcells (phpfpm-nginx, py-stemcell, nodejs-stemcell and friends), configured by role. A stemcell is a hardened base image we build and patch ourselves; there are 7 of them, in PHP, Python and Node.js families, and a service picks one by naming its role. Patching happens in one place, so every machine we build has one provenance.

Your own services ride the same stemcells. We build and patch a customer's application containers through the same process as the platform's own, so theirs and ours share that provenance, and they land in the customer's own registry.

One engine, two ways it runs

A laptop, or a fleet

The same templates serve an engineer running mg on a laptop and an unattended job on the fleet.

laptop

mg config generate -c local
docker compose up

An engineer runs this on a laptop and the fleet runs the identical render unattended. Same bytes either way.

control plane

micro stack compile → .stack.tgz, version-stamped
micro stack deploy-bundle → a fleet machine

Substrate's control plane runs the same render without a human: image references rewritten for the registry, source repositories staged and the lot packaged as a named artefact. Deploy that bundle to a second machine and you know it is the same bytes; the target needs no micro‑glue installed.

Local development runs the same mechanism as production. micro‑glue fills a prepared machine; Substrate builds that machine first.

Ten years of the same idea

From tidying our own playbooks to building whole platforms

What it is for has not changed since 2016: describe the thing once and render it correctly everywhere it runs.

  1. 2016A rewrite of an old idea
  2. 2018Everything builds from stemcells
  3. 2019Observability, rendered in
  4. 2022It started building the apps too
  5. 2025One command for all of it
  6. 2026The container factory, with a face

The history, 2016 to now

Part of Substrate, the Foundation of Microcelium

The container factory of the layer you own

Substrate declares and builds the machine: VMs, networks, firewalls and disks. micro‑glue fills it with services. Above them, Loom runs the intelligence and Prism the experience.

It is part of the Microcelium tooling that builds your application, and what it builds is yours to keep. If it is the shape of thing you need, talk to us.