Example of vps deploy with infra split from business. Keeps one mysql instance for all.
21 lines
1004 B
Bash
21 lines
1004 B
Bash
# 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"
|