π₯οΈ Self-Hosting Overview β
KitchenAsty is designed to be self-hosted on your own server or cloud instance. This guide walks you through everything you need to go from a blank server to a fully running restaurant ordering platform with HTTPS, backups, and monitoring.
π― What You Will Set Up β
By the end of this guide, you will have:
- π A production server running KitchenAsty (API, Admin Dashboard, Storefront)
- ποΈ PostgreSQL database with automatic backups
- π HTTPS with free SSL certificates from Let's Encrypt
- π A reverse proxy routing traffic to each service
- π‘οΈ Firewall rules protecting your server
- β»οΈ Automatic container restarts on failure
- π¦ A process for updating to new versions
ποΈ Architecture Overview β
Internet
β
βΌ
ββββββββββββββββββ
β Your Domain β
β (Cloudflare β
β or direct) β
βββββββββ¬βββββββββ
β
βΌ
ββββββββββββββββββ
β Reverse Proxy β
β (Caddy/Nginx) β
β + SSL/TLS β
βββββββββ¬βββββββββ
β
βββββββββββββββΌβββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββ ββββββββββββ ββββββββββββ
β Admin β βStorefrontβ β API β
β :5173 β β :5174 β β :3000 β
βββββββββββ ββββββββββββ ββββββββββββ
β
βΌ
ββββββββββββ
βPostgreSQLβ
β :5432 β
βββββββββββββοΈ Hosting Options β
You can host KitchenAsty on any Linux server. Here are some popular choices:
| Provider | Smallest Plan | Approximate Cost | Notes |
|---|---|---|---|
| Hetzner | CX22 (2 vCPU, 4 GB) | ~$5/month | π Excellent value, EU and US locations |
| DigitalOcean | Basic Droplet (1 vCPU, 2 GB) | $6/month | π Simple interface, good docs |
| Linode (Akamai) | Nanode (1 vCPU, 2 GB) | $5/month | β‘ Solid performance |
| Vultr | Cloud Compute (1 vCPU, 2 GB) | $6/month | π Global locations |
| AWS Lightsail | 2 GB instance | $10/month | βοΈ AWS ecosystem |
| Home server / Raspberry Pi 5 | β | Electricity cost | π Needs port forwarding and dynamic DNS |
π‘ Recommendation
For a single-location restaurant, a 2 GB RAM / 1 vCPU server is sufficient. If you expect heavy traffic or run multiple locations, choose 4 GB RAM / 2 vCPU or higher.
π Domain Names β
You will need a domain name (e.g., yourdomain.com). We recommend setting up three subdomains:
| Subdomain | Purpose |
|---|---|
π§ admin.yourdomain.com | Admin Dashboard (staff-only) |
π order.yourdomain.com | Customer Storefront |
π api.yourdomain.com | API Server (optional β can be proxied via /api/ paths) |
You can purchase a domain from any registrar (Namecheap, Cloudflare Registrar, Google Domains, GoDaddy, etc.).
π Guide Structure β
Follow these pages in order:
- π₯οΈ Server Setup β Provision a server, install Docker, and configure the firewall
- π³ Docker Compose Production β Configure and launch all KitchenAsty services
- π Domain & DNS β Point your domain to the server
- π Reverse Proxy & SSL β Set up Caddy or Nginx with automatic HTTPS
- πΎ Backups β Automate database and file backups
- π§ Maintenance β Updates, monitoring, and troubleshooting