Files
structured-website-builder-…/tasks-workflows/2026-05-11-git-pull-docker-build.md
T
2026-06-06 06:37:41 -06:00

6.2 KiB

iNDX Front Website Deployment Summary

Overview

This session completed the first successful deployment of the iNDX AI-native static website architecture onto the production VM.

The deployment now includes:

  • Git-based deployment workflow
  • Dockerized static serving
  • nginx runtime container
  • AI-native semantic artifact publishing
  • Separation of source-of-truth vs rendering layer
  • Compatibility with existing Caddy reverse proxy infrastructure
  • Verified AI retrieval endpoints

Architecture Decisions Finalized

Canonical Source of Truth

The Git repository is now the authoritative system.

The repository contains:

  • /content → authored markdown
  • /public → deployable runtime surface
  • /public/data/open/... → semantic retrieval artifacts
  • /skills-scripts → AI structuring workflows
  • /templates → reusable rendering assets
  • /hugo-html-builder → temporary rendering subsystem

Hugo Role Clarified

Hugo is NOT the website framework.

Hugo is ONLY:

Markdown → HTML materialization engine

Workflow:

Markdown
    ↓
Hugo render pass
    ↓
Generated HTML
    ↓
Commit/publish into /public

The semantic architecture remains independent of Hugo.


Major Structural Refactor Completed

AI Artifacts Moved Under /public

Original structure:

/data/open/pages/...

Final structure:

/public/data/open/pages/...

This normalized the deployable runtime namespace.

Now all deployable assets live under:

/public

including:

  • HTML
  • ai-index.json
  • chunks.json
  • qa.json
  • robots.txt
  • sitemap.xml
  • llms.txt
  • agents.md
  • skills.md

Git Deployment Workflow Established

Public Repo Access

Gitea configuration issue identified:

REQUIRE_SIGNIN_VIEW = true

This prevented anonymous cloning of public repositories.

Resolved by disabling:

Require Sign-In to View Pages

inside Gitea configuration.

Successful anonymous clone verified:

git clone https://git.example.com/example/structured-website-builder-private.git

Server Deployment Path

Production deployment path established:

/path/to/structured-website-builder

Repository successfully cloned and updated via:

git pull

Docker Runtime Architecture

Final Runtime Topology

Internet
    ↓
Cloudflare
    ↓
Caddy Reverse Proxy
    ↓
nginx Docker container
    ↓
Static AI-native website

nginx Container Decision

Decision made to use:

nginx:alpine

instead of:

  • Hugo runtime
  • Python web server
  • Node server

Reason:

  • static site only
  • extremely lightweight
  • ideal for semantic artifact serving

SSL/TLS Architecture Finalized

SSL terminates at Caddy.

nginx inside container only serves HTTP internally.

Correct separation:

Layer Responsibility
Caddy TLS / HTTPS
nginx static file serving

Therefore nginx listens ONLY on:

listen 80;

No certificates managed inside container.


Port Conflict Analysis

Discourse already occupies:

localhost:8080

on the same VM.

Static site container reassigned to:

localhost:8090

Final compose mapping:

ports:
  - "8090:80"

Docker Compose Installation

System initially lacked:

  • docker compose plugin
  • docker-compose

Installed:

sudo apt install docker-compose -y

Did NOT:

  • reinstall Docker
  • use snap Docker

to avoid disrupting existing Discourse infrastructure.


Docker Permission Resolution

Issue encountered:

Permission denied on docker.sock

Cause:

  • eddieadmin not yet in docker group.

Temporary resolution:

  • use sudo docker-compose

Future improvement:

sudo usermod -aG docker eddieadmin

Docker Runtime Files Created

docker/nginx.conf

Configured:

  • static serving
  • UTF-8
  • cache headers
  • AI artifact access
  • CORS support

docker/Dockerfile

Final runtime image:

FROM nginx:alpine

COPY docker/nginx.conf /etc/nginx/conf.d/default.conf

COPY public/ /usr/share/nginx/html/

docker-compose.yml

Final configuration:

services:

  structured-website-builder-web:

    build:
      context: .
      dockerfile: docker/Dockerfile

    container_name: structured-website-builder-web

    restart: unless-stopped

    ports:
      - "8090:80"

Build + Runtime Validation

Successfully executed:

sudo docker-compose build

and:

sudo docker-compose up -d

Runtime Verification Completed

Homepage Validation

Verified:

curl http://localhost:8090

Returned valid homepage HTML.


AI Artifact Validation

Verified:

curl http://localhost:8090/ai-index.json

and:

curl http://localhost:8090/data/open/pages/home/chunks.json

and:

curl http://localhost:8090/data/open/pages/home/qa.json

All successful.

This confirms:

  • AI retrieval layer operational
  • semantic namespace operational
  • discovery layer operational
  • nginx static serving operational
  • deployable runtime namespace operational

Current Production State

The system now successfully operates as:

AI-native static semantic publishing infrastructure

with:

  • Git-based deployment
  • Dockerized runtime
  • nginx serving
  • semantic retrieval endpoints
  • AI discovery endpoints
  • structured chunk architecture
  • QA reasoning layer
  • independent rendering pipeline

Next Planned Steps

Infrastructure

  • Wire Caddy reverse proxy
  • Configure indx.earth routing
  • Enable HTTPS via Caddy
  • Cloudflare DNS + proxy validation

Website

  • Add lightweight contact API service
  • Add subscription endpoint
  • Add health monitoring route
  • Add deployment/update workflow automation

AI Layer

  • Expand semantic summaries
  • Additional JSON-LD generation
  • Future MCP/API integration
  • Agent retrieval experimentation

Final Architecture Snapshot

Markdown Content
    ↓
Semantic Structuring
    ↓
chunks.json + qa.json
    ↓
Hugo Materialization
    ↓
/public Runtime Surface
    ↓
Docker nginx Container
    ↓
Caddy Reverse Proxy
    ↓
Cloudflare Edge
    ↓
Public AI-Native Website