This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=nunix-blog Docusaurus site (prod) | |
| [Container] | |
| Image=localhost/nunix-blog:prod | |
| ContainerName=nunix-blog | |
| PublishPort=3000:3000 | |
| AutoUpdate=registry | |
| [Service] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ========================================================================= | |
| # 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* ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ========================================================================= | |
| # 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 ./ |