mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 11:51:15 +02:00
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
1.1 KiB
1.1 KiB
Docker PostgreSQL Example
This example provisions PostgreSQL 18 Alpine with Docker resources:
Docker.RemoteImagepullspostgres:18-alpineDocker.Networkcreates an app networkDocker.Volumecreates persistent database storageDocker.Containerstarts PostgreSQL with a redacted password, a network alias, a named volume, and a host portDocker.inspectContainerreturns the bound host port
Docker resources use the active Docker CLI context. That can be Docker Desktop, a remote Docker host, an SSH context, or a CI runner daemon.
These resources are separate from Cloudflare.Container. The bridge between Docker and cloud container platforms is an image reference or registry digest, not a swappable container object.
Commands
bun install
POSTGRES_PASSWORD=change-me bun run --filter docker-postgres-example deploy
bun run --filter docker-postgres-example destroy
If POSTGRES_PASSWORD is omitted, the example generates and stores a redacted password with Alchemy.makeRandom.
The stack publishes PostgreSQL on localhost:15432:
psql postgres://alchemy:change-me@localhost:15432/app