Skip to content

Instantly share code, notes, and snippets.

View nunix's full-sized avatar

Nuno do Carmo nunix

View GitHub Profile
@nunix
nunix / nunix-blog.container
Created July 5, 2026 07:56
Podman Quadlet unit — blog prod service (Nunix Universe Imperium fleet)
[Unit]
Description=nunix-blog Docusaurus site (prod)
[Container]
Image=localhost/nunix-blog:prod
ContainerName=nunix-blog
PublishPort=3000:3000
AutoUpdate=registry
[Service]
@nunix
nunix / nunix-blog-dev.container
Created July 5, 2026 07:56
Podman Quadlet unit — blog dev/hot-reload service (Nunix Universe Imperium fleet)
[Unit]
Description=nunix-blog Docusaurus site (dev, hot reload from host source)
[Container]
Image=localhost/nunix-blog:dev
ContainerName=nunix-blog-dev
Volume=[YOUR_BLOG_REPO_PATH]:/app:Z
Volume=blog-node-modules:/app/node_modules
PublishPort=3000:3000
@nunix
nunix / fleet-v3.container
Created July 5, 2026 07:56
Podman Quadlet unit — command center prod service (Nunix Universe Imperium fleet)
[Unit]
Description=fleet-v3 command center (prod)
[Container]
Image=localhost/fleet-v3:prod
ContainerName=fleet-v3
AutoUpdate=registry
Environment=DATABASE_URL=postgresql://[DB_USER]:[DB_PASSWORD]@[DB_HOST]/[DB_NAME]?sslmode=disable
# Network=host: container shares host network namespace so loopback-mapped hostname
# imperator.fleet.local (→127.0.0.1 in /etc/hosts) correctly resolves to host's Postgres.
@nunix
nunix / nunix-blog.Containerfile
Created July 5, 2026 07:56
Docusaurus blog — bun-based multi-stage Containerfile (dev+prod), from the Nunix Universe Imperium fleet
# =========================================================================
# nunix-blog (Docusaurus 3.9.2 + React 19) — multi-stage Containerfile
# Targets: dev (hot reload against bind-mounted source), build, prod (default)
# =========================================================================
# --- deps: bun install (repo has bun.lock, package-lock.json also present
# but bun install reads package.json directly regardless) -------------------
FROM docker.io/oven/bun:1 AS deps
WORKDIR /app
COPY package.json bun.lock* ./
@nunix
nunix / fleet-v3.Containerfile
Created July 5, 2026 07:56
fleet-v3 command center — multi-stage Containerfile (dev+prod), from the Nunix Universe Imperium fleet
# =========================================================================
# fleet-v3 command center — multi-stage Containerfile
# Targets: frontend-dev (frontend hot reload), backend-dev (go run hot reload),
# prod (default — embeds built frontend into Go binary via go:embed)
# =========================================================================
# --- Frontend deps (shared by dev + build) ---------------------------------
FROM registry.suse.com/bci/nodejs:20 AS frontend-base
WORKDIR /app
COPY frontend/package*.json ./