Any Linux VM that can run Docker Compose works — a ~€4/month Hetzner CX22, Oracle Cloud's always-free ARM tier, a DigitalOcean droplet, or a bare Raspberry Pi. This is the cheapest way to run Freeweight short of a free tier.
-
Create a VM with Docker installed (Ubuntu 24.04 +
curl -fsSL https://get.docker.com | sh). -
Clone the source checkout (the Compose file builds its Dockerfile):
git clone https://github.com/maxffarrell/freeweight.git cd freeweight cp .env.example .env -
In
.env, setBETTER_AUTH_SECRETandPOSTGRES_PASSWORDto separate outputs ofopenssl rand -hex 32, and setORIGIN=https://your-domain.example. Keep this file private and persistent. Start it:docker compose up -d --build
The
appservice runs migrations on start and listens on port 3000. -
Point your domain at the VM and put a TLS reverse proxy in front — Caddy is the least work:
your-domain.example { reverse_proxy localhost:3000 } -
Optional: set
CRON_SECRETand scheduleGET /api/crondaily withAuthorization: Bearer $CRON_SECRETfor billing and reminder emails. AddRESEND_API_KEYorSMTP_URLplusEMAIL_FROMto send real email.
Upgrades: update the source checkout, then docker compose up -d --build. Back up first. Existing database volumes retain their password: set POSTGRES_PASSWORD to the current password before upgrading; changing .env does not rotate it. If using a published image instead, explicitly configure a version tag or digest.