GresBoxGresBox

Services

DevOps and deployment

GresBox builds the path from your repository to production: Docker images, Traefik routing with automatic TLS, database migrations that run on deploy, and a pipeline that checks the new version before any traffic reaches it.

The problem

Deployment is where a lot of otherwise good projects keep their worst code. It works, so nobody reads it. Then one Tuesday it does not, and the fastest person available starts running commands on a production server by hand.

The failure modes repeat across projects. A health check that reports on the wrong container. Migrations that only ever ran on someone's laptop. Secrets baked into an image layer where they survive long after the file was deleted. Two hostnames serving the same site with no redirect. A rollback procedure that has never once been rehearsed.

How we approach it

Everything that runs in production is defined in your repository: the Dockerfile, the compose files, the reverse proxy configuration and the pipeline. If it is not in version control it is not part of the deployment, because anything else is a server nobody can rebuild.

Images are multi-stage and ship only what the application needs at runtime, running as a non-root user. Configuration and secrets are injected at run time rather than copied into a build layer. Traefik terminates TLS with automatic certificate renewal, redirects HTTP to HTTPS, and keeps one canonical hostname so the same content does not compete with itself in search results.

Releases are automated and verified. The pipeline runs the type check, lint and tests, builds the image, applies migrations, then health-checks the new container directly before traffic moves to it. Rollback is part of the same mechanism, and we exercise it before you need it.

What you get

  • Reproducible images

    Multi-stage Docker builds, non-root runtime, a lean final image, and a build that produces the same result on any machine.

  • Routing and TLS

    Traefik in front, certificates issued and renewed automatically, HTTP redirected to HTTPS, one canonical hostname.

  • A real pipeline

    Type check, lint and tests on every push. Build and deploy on merge. A failing check stops the release.

  • Health-checked releases

    The new container is verified on its own address before traffic moves, so a build that compiles but crashes never takes the site down.

  • Migrations on deploy

    Schema changes applied automatically as part of the release, in order, once, with the application waiting for them.

  • Backups and runbooks

    Scheduled database dumps with a restore procedure that has been run at least once, plus written steps for the things that go wrong.

How we know this holds

Four properties of the release process, each with the mechanism that guarantees it rather than a promise that it holds.

  • A release cannot take your site down

    Two containers, one live. The new one is built against the live database, started, and polled for up to two and a half minutes. Only then is the old one removed — and if the new one never answers, nothing is torn down: the previous version keeps serving, the script prints the new container's logs and exits non-zero.

    Health poll before teardown

    Running on two live client sites

  • Rollback is four commands, and we have run them

    Both images stay tagged on disk, so going back is starting the previous one and rewriting a file — no rebuild, no registry pull. What a rollback does not undo is the migration, which is why anything the old code cannot tolerate is explicitly a two-release operation.

    4 commands, no rebuild

    Rehearsed, not assumed

  • Your database is unreachable from the internet by construction

    It publishes no host port at all. Not firewalled, not access-listed — there is no route to it from outside the application's own private network. Secrets live above the checkout, so the release's hard reset cannot destroy them and they never enter an image layer.

    No published port, secrets above the repo

    Not a firewall rule

  • A backup you have not restored is a file, not a backup

    Scheduled dumps with a log you can actually check, copied off the box, and a restore performed at least once before you need it. Written into a runbook somebody else can follow top to bottom at eleven at night, because that is who ends up reading it.

    Nightly dump, restore rehearsed

    Documented in your runbook

How the work runs

Five steps, the same on every project. You can see the full version on our process page.

  1. 01

    Discovery

    We start with a call to understand what you are building, who it is for, and what has to be true for it to work. You leave with a written scope, not a sales pitch.

  2. 02

    Design

    We turn the scope into screens before anyone writes application code. You review real layouts, on real breakpoints, with your own content in them.

  3. 03

    Build

    We build in short cycles against the agreed sequence, and you get a working URL from the first week. Nothing is demoed from a screenshot.

  4. 04

    Launch

    We ship to production with the deployment automated, the database migrated and rollback tested. Launch day is a repeat of something we have already done.

  5. 05

    Support

    After launch we keep the application patched, monitored and measured. You decide how involved we stay.

Questions about deployment and operations

Where will our application be deployed?

Wherever suits the project. We deploy containerised applications to a VPS behind Traefik, or to your existing cloud account if you have one. The deployment is defined in your repository either way, so it is portable rather than tied to us.

Do you set up CI/CD?

Yes. Every project gets an automated pipeline that runs the type check, lint and tests on each push, then builds and deploys on merge to the default branch. Deployments are health-checked before traffic moves to the new version.

Can you handle domain, DNS and SSL setup?

Yes. We configure DNS, provision and auto-renew TLS certificates, and set up the redirects that keep one canonical hostname, which stops the same content ranking against itself.

Do you provide monitoring and error tracking?

Yes. Applications ship with a health endpoint, uptime monitoring and error reporting, so a failure surfaces as an alert rather than as a support email from a customer.

How do you handle security and data privacy?

Input is validated on the server for every request, secrets stay out of the repository and out of image layers, traffic is TLS only, and access to personal data is authenticated. Where an application stores personal data we design retention and deletion in from the start rather than retrofitting it.

How do you handle database design and schema changes?

The schema is defined in Prisma and every change ships as a version-controlled migration that runs as part of the deploy. That means the database and the application code move together, and a change can be reviewed and reversed like any other code.

Deploying by hand right now?

Most teams we talk to are one bad Tuesday away from wanting this fixed. Tell us how you deploy today and we will tell you what we would change first.