A practical technical breakdown of running six production services, including PostgreSQL, Redis, Temporal, and Postiz, on a single £8.29/month Hetzner VPS using Docker and docker-compose.

The setup is based on a budget server from Hetzner, specifically the CX22 model located in Helsinki, which has two processors, four gigabytes of RAM and forty gigabytes of storage. This choice was made mainly for cost reasons, as similar services from large providers cost significantly more for the same hardware. The main concession is the lack of auto-scaling, out-of-the-box managed services and automatic load balancing, which is considered perfectly acceptable for a new, independent venture in its early stages.

All services run organized within isolated application environments, allowing the entire infrastructure to be managed from a single configuration file. The system hosts the Spellcast platform and the Postiz publishing engine, the PostgreSQL database for storing users, posts, programs and analytics, Redis for managing the publishing queue and cache, the Temporal engine that ensures reliable execution of processes and retries failed publications, and Caddy that automatically manages secure connections.

At the network level, all services are on the same internal network and communicate with each other by name, while only the necessary ports for web traffic and publishing are open to the outside. Updates and changes to the code are completed in just a few minutes, while the front-end of the application is hosted separately on an external free service. The total monthly infrastructure cost is around eleven pounds, which breaks down into around eight.29 pounds for the Hetzner server, around five pounds for Cloudflare R2 file storage, zero cost for Vercel and around two pounds for domains. The creator notes that this simple infrastructure has limitations such as memory and lack of redundancy, but remains a conscious and economical choice.

>Stay connected with Hacks.gr

Set us as a preferred source on Google and find us on social media.

Preferred source

↗

end of article

Read the original English article on Hacks.gr