a small multi-node deployment with postgres, an API service, nginx, automatic TLS, and an hourly backup cron.
this example follows the same cluster workflow as the main cluster guide and the new golden path.
on three server nodes:
TOKEN=$(openssl rand -hex 32)
yoq init-server --id 1 --port 9700 --api-port 7700 --token "$TOKEN"
yoq init-server --id 2 --port 9700 --api-port 7700 --peers 1@10.0.0.1:9700 --token "$TOKEN"
yoq init-server --id 3 --port 9700 --api-port 7700 --peers 1@10.0.0.1:9700,2@10.0.0.2:9700 --token "$TOKEN"on each agent node:
yoq join 10.0.0.1:7700 --token "$TOKEN"DB_PASSWORD=supersecret yoq up --server 10.0.0.1:7700 -f examples/cluster/manifest.tomlyoq nodes --server 10.0.0.1:7700
yoq status --server 10.0.0.1:7700
yoq metrics --server 10.0.0.1:7700- open ports 80 and 443 on the node serving
myapp.example.comif you want ACME issuance to succeed - set
DB_PASSWORDbefore deploying to override the default database password - this example is intentionally service-only so it can be deployed with the standard remote manifest workflow