Skip to content

docs: add Docker usage guidance#260

Merged
fahimfaisaal merged 2 commits into
mainfrom
docs/docker-install
Jul 26, 2026
Merged

docs: add Docker usage guidance#260
fahimfaisaal merged 2 commits into
mainfrom
docs/docker-install

Conversation

@hfl0506

@hfl0506 hfl0506 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

Closes #256

Changes

  • Added Docker Hub badge and Docker install link to README.md.
  • Added API, Compose, and CLI docker run examples.
  • Documented Docker image pull, file mounting, and stdin usage.
  • Added host-port remapping guidance (7878:8080).
  • Documented 0.0.0.0:8080 container binding.
  • Added warnings that the serve API has no authentication.
  • Recommended authentication, TLS, reverse proxy, or firewall controls.
  • Used goptics/vizb and port 8080 consistently.

Test Result

/commands/serve

Screenshot 2026-07-21 at 10 27 46 PM

/installation

Screenshot 2026-07-21 at 10 28 01 PM

Summary by CodeRabbit

  • Documentation
    • Added Docker installation and usage instructions, including Docker Hub badge references and Docker/Compose examples.
    • Documented running the API via Docker, including host port remapping and guidance for local CLI use with mounted volumes and piped input.
    • Clarified that the vizb serve API is unauthenticated and should not be exposed publicly without additional security controls.
    • Updated the security guidance to emphasize network exposure and safer deployment considerations.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 57d936c1-5973-489f-9746-19dcced8e149

📥 Commits

Reviewing files that changed from the base of the PR and between 72bdd0c and 4ab2e4e.

📒 Files selected for processing (4)
  • README.md
  • SECURITY.md
  • docs/src/content/docs/commands/serve.mdx
  • docs/src/content/docs/installation.mdx
🚧 Files skipped from review as they are similar to previous changes (4)
  • README.md
  • docs/src/content/docs/installation.mdx
  • docs/src/content/docs/commands/serve.mdx
  • SECURITY.md

📝 Walkthrough

Walkthrough

Docker installation and usage documentation was added to the README and site, including API, CLI, Compose, and port-remapping examples. Security guidance now documents the unauthenticated API, Docker network binding, required protections, and parser input risks.

Changes

Docker documentation

Layer / File(s) Summary
Docker installation and usage documentation
README.md, docs/src/content/docs/installation.mdx, docs/src/content/docs/commands/serve.mdx
Adds Docker badges, navigation, installation instructions, API and CLI commands, Compose usage, port remapping, and authentication cautions.
API exposure security policy
SECURITY.md
Documents unauthenticated vizb serve exposure on Docker’s 0.0.0.0:8080 binding, required protections, parser risks, and supported-version policy.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • Issue 253 — Covers the Docker image, Compose workflow, Docker-based commands, and API security guidance added here.

Suggested reviewers: fahimfaisaal

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding Docker usage guidance to docs.
Linked Issues check ✅ Passed The changes satisfy #256 by adding Docker examples, Compose/serve docs, README links, and SECURITY.md warnings with consistent image and port usage.
Out of Scope Changes check ✅ Passed All edits are documentation and security wording changes directly tied to the Docker documentation objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Comment @coderabbitai help to get the list of available commands.

@hfl0506
hfl0506 marked this pull request as ready for review July 22, 2026 05:33
@hfl0506
hfl0506 requested a review from fahimfaisaal as a code owner July 22, 2026 05:33

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/src/content/docs/installation.mdx`:
- Around line 21-24: Update Docker examples in
docs/src/content/docs/installation.mdx (lines 21-24), README.md (lines 70-71),
and docs/src/content/docs/commands/serve.mdx (lines 33-45) to bind published
port 8080 to 127.0.0.1, preserving any existing host-port mappings such as 7878.
In SECURITY.md (lines 28-31), clarify that non-loopback publishing requires
authentication, TLS, and appropriate access controls.

In `@README.md`:
- Around line 68-73: Separate the Docker and Compose alternatives into distinct
code blocks so the foreground docker run command does not prevent docker compose
up -d from executing. Apply this change in README.md lines 68-73 and
docs/src/content/docs/commands/serve.mdx lines 30-36, preserving both commands
and clearly presenting them as alternatives.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 12928535-4c78-4c93-ae1d-447495090f2a

📥 Commits

Reviewing files that changed from the base of the PR and between bb0983a and 72bdd0c.

📒 Files selected for processing (4)
  • README.md
  • SECURITY.md
  • docs/src/content/docs/commands/serve.mdx
  • docs/src/content/docs/installation.mdx

Comment thread docs/src/content/docs/installation.mdx
Comment thread README.md Outdated
@hfl0506
hfl0506 force-pushed the docs/docker-install branch from 72bdd0c to 4ab2e4e Compare July 22, 2026 06:41
@hfl0506 hfl0506 added this to the Release v0.17.0 milestone Jul 22, 2026
@hfl0506 hfl0506 added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 22, 2026
@hfl0506 hfl0506 self-assigned this Jul 22, 2026
@fahimfaisaal
fahimfaisaal merged commit f6def68 into main Jul 26, 2026
3 checks passed
@fahimfaisaal
fahimfaisaal deleted the docs/docker-install branch July 26, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs]: Document Docker image, Compose API, and serve security

2 participants