jonnify·bcs /bcs/fly

B8 · the deploy chapter · Production on Fly

Production on Fly.

Codemojex from a compiled umbrella to a running service: a mix release built in a Docker image, a Valkey machine with an append-only log, EchoMQ wired into the supervision tree, and the fly.toml that ships it — with a docker compose that brings the same stack up locally.

Four dives: the release and the image, Valkey on a Fly machine, EchoMQ setup and monitoring, and the fly.toml and the local stack — grounded in the Dockerfile, fly.toml, and docker-compose.yml in the umbrella root.

A release built in the image, run as one supervised app, deployed as Machines or composed locally. Select a part.
the releasemix release codemojexbuilt in the image ships one supervised appRepo · PubSub · busno ephemeral tier runs on Fly Machinesor docker composethe endpoint on 4000
readout · Select a part. The Dockerfile builds a codemojex release; it runs as one supervised app with no ephemeral tier; it deploys as Fly Machines under codemoji-phoenix, or locally under docker compose with the endpoint on port 4000.
§1

The four dives

production · the release, the store, the queue, the deploy
§2

The chapter, in one law

codemojex · from a compiled umbrella to a running service

B8 takes Codemojex from a compiled umbrella to a running service, and shows the production shape from the inside. The build is a release: the Dockerfile compiles the codemojex app over echo_mq, echo_data, and echo_wire, makes the native branded-id codec, and packs mix release codemojex into a slim image — leaving echo_store, echo_bot, and echo_graft out, since the game does not depend on them. The queue’s Valkey runs as its own Fly machine with an append-only log for a one-second loss bound and the kernel tuned away from its defaults. EchoMQ is wired into the supervision tree as a bus and a set of lane consumers, watched by queue depth and lease health. And the fly.toml ships it as machines under codemoji-phoenix, holding the endpoint on port 4000 so live sockets survive a deploy, with a docker compose that brings the same stack up locally. Four dives: the release and the image, Valkey on a Fly machine, EchoMQ setup and monitoring, and the fly.toml and the local stack.

§4

The doors

the sibling courses
§3

References

sources · related

Sources

Related