Tip
Available at: https://docs.hlds.run/
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.dsupport (nginx-style) - one-time database initialization via
generate/update.php
- Docker 24+
- Docker Compose v2+
No local PHP, MySQL or NGINX installation required.
| 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) |
| Path | Description |
|---|---|
./www |
pawn-docgen web files |
./generate |
documentation generator script |
./include |
pawn .inc includes |
./settings.php |
pawn-docgen and generate script configuration |
On first container start:
docker-entrypoint.shruns all scripts in/docker-entrypoint.d10-init-database.shexecutesphp generate/update.php- a marker file prevents re-running on next starts
PHP-FPM continues running normally after initialization.
docker compose up -d- http://localhost:83/ — pawn-docgen documentation site
- http://localhost:83/amxmisc — specific include documentation
- http://localhost:3000/health — og-gen service health check (internal)
- 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-genservice built with Bun and TypeScript - See docker/og-gen/README.md for og-gen service documentation
Upstream project: https://github.com/alliedmodders/pawn-docgen This Docker setup follows upstream licensing.