# One-command installer bundle

Files:
- `scripts/install-node.sh` — run on each node with its env file
- `examples/db1.env` — sample DB node env
- `examples/proxy1.env` — sample proxy node env

Usage on each VPS:

```bash
sudo bash scripts/install-node.sh examples/db1.env
```

or

```bash
sudo bash scripts/install-node.sh examples/proxy1.env
```

Notes:
- Copy the right env file to each machine and edit it first.
- The script writes `/etc/wireguard/wg0.conf`, `/etc/hosts`, UFW rules, and the Docker stack under `/opt`.
- DB nodes expect `db1`, `db2`, `db3`, and `proxy1` to resolve via `/etc/hosts`.
- For pgAdmin/API Caddy auth hashes, generate with:

```bash
docker run --rm caddy:2 caddy hash-password --plaintext 'your-password'
```
