How to deploy NextJS app using Docker with Bun nextjs

How to deploy NextJS app using Docker with Bun

Deploy a NextJS app with Docker and Bun using a three-stage Dockerfile: install dependencies with a frozen lockfile, build the app, then run the standalone output on oven/bun:alpine. Faster installs than npm and a small production image, step by step.

Oct 21, 2024

Emergency root access: Leveraging Portainer when SSH fails docker

Emergency root access: Leveraging Portainer when SSH fails

Locked out of SSH? Portainer can get you root back: deploy a privileged busybox container that mounts the host filesystem at /host and gives you an interactive shell. The exact Docker Compose script, the security implications, and when this trick is justified.

Sep 2, 2024

How to run Thruster and Kamal in Rails app

How to run Thruster and Kamal in Rails app

Thruster with Kamal in Rails: what 37signals' no-config proxy adds (HTTP/2, Let's Encrypt HTTPS, asset caching, X-Sendfile with compression), why it is still useful behind Traefik or Cloudflare, and how to integrate it into your app.

Docker cached and delegated to speed up IO

Docker cached and delegated to speed up IO

Docker's cached and delegated volume modes explained: how the three consistency options differ, when to relax host-container syncing for faster I/O, and a docker-compose Nginx example showing exactly where to put each flag.