Updated references to a demo business.
This commit is contained in:
6 files changed
+25
-25
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: next-chair-blake-heritage
|
||||
name: next-chair-demo-business
|
||||
|
||||
# One business's app container on the shared multi-business VPS setup —
|
||||
# see stacks/infra/compose.yaml for the shared MySQL/Caddy this attaches
|
||||
@@ -6,9 +6,9 @@ name: next-chair-blake-heritage
|
||||
# (create this business's database, copy .env.business.example, add a
|
||||
# Caddy site file) needed before this file can start.
|
||||
#
|
||||
# docker compose -f stacks/blake-heritage/compose.yaml --env-file stacks/blake-heritage/.env up -d
|
||||
# docker compose -f stacks/demo-business/compose.yaml --env-file stacks/demo-business/.env up -d
|
||||
#
|
||||
# `stacks/marios/compose.yaml` is the identical shape for the second
|
||||
# `stacks/marios/compose.yaml` is the identical shape for another
|
||||
# business — this is also the shape the management UI (manager/)
|
||||
# generates for every new business it provisions.
|
||||
#
|
||||
@@ -18,14 +18,14 @@ name: next-chair-blake-heritage
|
||||
# business is just starting/recreating a container, not a rebuild.
|
||||
|
||||
services:
|
||||
next-chair-blake-heritage:
|
||||
next-chair-demo-business:
|
||||
image: nextchair-app:latest
|
||||
container_name: next-chair-blake-heritage
|
||||
container_name: next-chair-demo-business
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- next-chair-media-blake-heritage:/app/storage/media
|
||||
- next-chair-media-demo-business:/app/storage/media
|
||||
healthcheck:
|
||||
# No curl/wget in the node:22-alpine base image — a plain Node
|
||||
# request avoids adding a package just for this. See
|
||||
@@ -46,8 +46,8 @@ services:
|
||||
- next-chair-edge
|
||||
|
||||
volumes:
|
||||
next-chair-media-blake-heritage:
|
||||
name: next-chair-media-blake-heritage
|
||||
next-chair-media-demo-business:
|
||||
name: next-chair-media-demo-business
|
||||
|
||||
networks:
|
||||
next-chair-edge:
|
||||
@@ -6,7 +6,7 @@ name: next-chair-infra
|
||||
# one shared schema — see step 1 below).
|
||||
#
|
||||
# Lives in stacks/infra/, one directory per stack (each with its own
|
||||
# compose.yaml) — see stacks/blake-heritage/, stacks/marios/ for the same
|
||||
# compose.yaml) — see stacks/demo-business/, stacks/marios/ for the same
|
||||
# shape per business, and stacks/manager/ for the management UI's own
|
||||
# stack. Deliberately separate from docker-compose.local.yaml at the
|
||||
# repo root, which is the single-business local/Docker-Desktop setup and
|
||||
@@ -31,9 +31,9 @@ name: next-chair-infra
|
||||
# initdb.d scripts only ever run once against an empty data
|
||||
# directory — so this one step is manual, run once per business:
|
||||
# docker exec -it next-chair-mysql mysql -uroot -p
|
||||
# CREATE DATABASE blake_heritage CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
|
||||
# CREATE USER 'blake_heritage'@'%' IDENTIFIED BY 'choose-a-strong-password';
|
||||
# GRANT ALL PRIVILEGES ON blake_heritage.* TO 'blake_heritage'@'%';
|
||||
# CREATE DATABASE demo_business CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
|
||||
# CREATE USER 'demo_business'@'%' IDENTIFIED BY 'choose-a-strong-password';
|
||||
# GRANT ALL PRIVILEGES ON demo_business.* TO 'demo_business'@'%';
|
||||
# FLUSH PRIVILEGES;
|
||||
# 2. Copy .env.business.example to stacks/<slug>/.env, fill it in with
|
||||
# the credentials just created and that business's domain.
|
||||
|
||||
@@ -2,8 +2,8 @@ Keeps this otherwise-empty directory tracked in git.
|
||||
|
||||
Each business gets its own <slug>.caddy file here, e.g.:
|
||||
|
||||
blake-heritage.example.com {
|
||||
reverse_proxy next-chair-blake-heritage:3000
|
||||
demo-business.example.com {
|
||||
reverse_proxy next-chair-demo-business:3000
|
||||
}
|
||||
|
||||
Generated by the management UI (manager/) when a business is added, or
|
||||
|
||||
Reference in new issue
Block a user