pnpm installcd devvyos/build-image.shpodman compose up -dpve/init-cluster.sh- Copy
apps/backend/.env.exampletoapps/backend/.env - Add secrets to
apps/backend/.env
- Set
CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVEand set allVPCstuff to false - set
BETTER_AUTH_SECRETto any value
- Set up the database:
pnpm --filter stack-backend db:migrate - Seed test IPs:
podman exec -i fyra-postgres psql -U postgres < dev/seed-ipam.sql pnpm dev(runs the backend worker on port 5174 and the dashboard on 5173; the dashboard reaches the backend through theBACKENDservice binding, so both must be running)
pnpm cf:deploy builds everything, deploys stack-backend, then stack-dashboard (the dashboard's service binding needs the backend to exist first). pnpm cf:deploy:preview does the same for the preview environments.
Details, one-time machine setup, and caveats: dev/README.md
- Required:
- Generate Better Auth
- Autumn
- Postgres connection URL
- with the dev compose stack:
postgres://postgres:mysecretpassword@127.0.0.1:5432/postgres
- with the dev compose stack:
- Highly recommended:
- Proxmox (printed by
dev/pve/init-cluster.sh)
- Proxmox (printed by
- Optional:
- VyOS (values in dev/README.md)
- GitHub
- Cloudflare email key
- Bunny.net API key