Blueprints · Docker & Databases
Production
25 min · Coolify / Dokploy
Coolify or Dokploy host firewall and backups
Limits the panel port to an admin address, leaves 80 and 443 open for the apps the panel publishes, and records an encrypted S3 backup target plus the PortGate agent.
Live config
Baked-in protections
- The panel port is allowed only from the admin CIDR
- App HTTP and HTTPS stay open
- Backup settings are an env file, not a world-readable note
- PortGate watches the host after the panel is installed
Step 1 · bash
Firewall the panel
/root/portgate-blueprints/panel-firewall.sh
Install Coolify or Dokploy with their own installer first. This step only narrows the panel port.
#!/bin/sh set -eu ufw allow 22/tcp ufw allow 80/tcp ufw allow 443/tcp ufw allow from 203.0.113.10/32 to any port 8000 proto tcp ufw --force enable
Step 2 · env
Backup target
/root/portgate-backups.env
Mode 600. Put the real keys here after you create them. Coolify and Dokploy both read S3-compatible settings in their backup screen.
S3_BUCKET=backups S3_ENDPOINT= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY=
Step 3 · bash
Install the PortGate agent
/root/portgate-blueprints/panel-agent.sh
Host health, exposed ports, and SSH posture. Uses --mode all.
#!/bin/sh set -eu chmod 600 /root/portgate-backups.env || true curl -fsSL "https://example.com/downloads/install.sh" | sh -s -- --token "paste-from-dashboard" --mode all --url "https://example.com"