Example of vps deploy with infra split from business.

Keeps one mysql instance for all.
This commit is contained in:
Stefan Lazic committed 2026-08-07 19:45:56 +01:00
1 parent b41a6d0af7
commit 841ee7eb52
6 files changed
+359

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Shared infrastructure config — see docker-compose.infra.yaml for the
# full setup sequence. Copy this to `.env.infra` (kept out of git — see
# .gitignore) and fill in real values.
#
# docker network create next-chair-edge
# docker compose -f docker-compose.infra.yaml --env-file .env.infra up -d
# ── MySQL (shared server — one database per business, created manually
# per business, see docker-compose.infra.yaml's own header) ────────────
MYSQL_ROOT_PASSWORD="replace-me"
# Host-machine port MySQL is reachable on, e.g. for a GUI client over an
# SSH tunnel — every business's app container always reaches it via the
# shared Docker network and the service name `next-chair-mysql`, never
# this.
MYSQL_HOST_PORT=3306
# ── Traefik (reverse proxy + automatic TLS via Let's Encrypt) ──────────
# Let's Encrypt sends renewal/expiry notices here — use a real address
# you actually check, not a placeholder.
ACME_EMAIL="you@example.com"