Skip to content

hlds-run/pawn-docgen

 
 

Repository files navigation

Pawn-docgen-logo

Tip

Available at: https://docs.hlds.run/

pawn-docgen (Docker setup)

Minimal Docker setup for running alliedmodders/pawn-docgen with NGINX + PHP-FPM + MariaDB.

This repository provides:

  • clean NGINX front controller configuration
  • PHP-FPM entrypoint with /docker-entrypoint.d support (nginx-style)
  • one-time database initialization via generate/update.php

Requirements

  • Docker 24+
  • Docker Compose v2+

No local PHP, MySQL or NGINX installation required.

Services

Service Image Purpose
nginx nginx:1-alpine HTTP frontend & reverse proxy
php-fpm php:8.5-fpm Application runtime
mariadb mariadb:12.1 Metadata storage
og-gen oven/bun:1-slim OG image generation service
adminer adminer:5 DB web UI (optional)

Volumes

Path Description
./www pawn-docgen web files
./generate documentation generator script
./include pawn .inc includes
./settings.php pawn-docgen and generate script configuration

Initialization

On first container start:

  • docker-entrypoint.sh runs all scripts in /docker-entrypoint.d
  • 10-init-database.sh executes php generate/update.php
  • a marker file prevents re-running on next starts

PHP-FPM continues running normally after initialization.

Usage

docker compose up -d

Access

Notes

  • No domain configuration required (default server)
  • Clean URLs are handled by NGINX
  • No PHP code modifications (except fixes)
  • Initialization logic follows official nginx/mysql image patterns
  • OG image generation is handled by the og-gen service built with Bun and TypeScript
  • See docker/og-gen/README.md for og-gen service documentation

License

Upstream project: https://github.com/alliedmodders/pawn-docgen This Docker setup follows upstream licensing.

Languages

  • PHP 39.9%
  • TypeScript 20.0%
  • Twig 19.2%
  • CSS 10.9%
  • Shell 4.6%
  • JavaScript 4.1%
  • Dockerfile 1.3%