Removed the demo business as its easier to just provision one manually.
This commit is contained in:
6 files changed
+32
-84
No files matched your search
+3
-3
@@ -6,9 +6,9 @@
|
||||
#
|
||||
# Only one instance of this ever runs (unlike the business image, which
|
||||
# is built once and reused across every business — see
|
||||
# stacks/demo-business/compose.yaml's own note) so a per-deploy `build:`
|
||||
# in stacks/manager/compose.yaml, rather than a separately tagged image,
|
||||
# is the simpler choice here.
|
||||
# src/lib/compose-template.ts's own note) so a per-deploy `build:` in
|
||||
# stacks/manager/compose.yaml, rather than a separately tagged image, is
|
||||
# the simpler choice here.
|
||||
|
||||
FROM node:22-alpine AS deps
|
||||
WORKDIR /app
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
/**
|
||||
* Generates the exact same shape as stacks/demo-business/compose.yaml
|
||||
* and stacks/marios/compose.yaml (the two hand-written example stacks) —
|
||||
* keep these in sync if that shape changes.
|
||||
* The canonical definition of a business stack's compose.yaml shape —
|
||||
* there's no separate hand-written example kept in the repo to stay in
|
||||
* sync with; this generator is the single source of truth. See
|
||||
* stacks/infra/compose.yaml's own header for the by-hand equivalent
|
||||
* steps (creating the database, .env, Caddy site) this replaces.
|
||||
*/
|
||||
export function generateComposeYaml(slug: string): string {
|
||||
const containerName = `next-chair-${slug}`;
|
||||
const volumeName = `next-chair-media-${slug}`;
|
||||
return `name: ${containerName}
|
||||
|
||||
# Generated by the management UI — see stacks/demo-business/compose.yaml
|
||||
# for the hand-written original this mirrors.
|
||||
# Generated by the management UI.
|
||||
|
||||
services:
|
||||
${containerName}:
|
||||
|
||||
Reference in new issue
Block a user