mirror of
https://github.com/hanzo-apps/templates.git
synced 2026-10-30 14:48:30 +00:00
Aggregates five OSS one-click/self-hosting catalogs into the Dokploy blueprint
shape the Hanzo PaaS consumes (meta.json array + blueprints/<id>/{template.toml,
docker-compose.yml,meta.json,logo}):
Dokploy 500 (MIT, verbatim) · Coolify 174 (Apache-2.0) · CapRover 161
(Apache-2.0) · CasaOS 85 (Apache-2.0) · Runtipi 110 (GPL-3.0)
Deduped by app identity; each source + app keeps its upstream license
(ATTRIBUTION.md). Deterministic aggregators + a hard validator (every
template.toml parses with the platform's toml lib, every compose parses as YAML,
meta.json is the expected array, and an over-HTTP fetch probe exercises all
1030) — 0 hard failures. Served natively by hanzoai/static on DOKS (no CDN/Pages/
Vercel); CI builds on the hanzo-build-linux-amd64 arc pool; operator App CR in
crs/ serves it at templates.hanzo.ai.
52 lines
1.5 KiB
TOML
52 lines
1.5 KiB
TOML
[variables]
|
|
main_domain = "${domain}"
|
|
mysql_root_password = "${password:32}"
|
|
mysql_password = "${password:32}"
|
|
php_timezone = "UTC"
|
|
force_https = "false"
|
|
allowed_hostnames = "${main_domain}"
|
|
|
|
[[config.domains]]
|
|
serviceName = "opensourcepos"
|
|
port = 80
|
|
host = "${main_domain}"
|
|
path = "/"
|
|
|
|
[[config.mounts]]
|
|
filePath = "README.md"
|
|
content = """# OpenSourcePOS
|
|
|
|
This template deploys Open Source Point of Sale with MariaDB using the upstream Docker image and persistent storage for uploads, logs, and database data.
|
|
|
|
## Access
|
|
|
|
- URL: `http://${main_domain}`
|
|
- Default application user: `admin`
|
|
- Default application password: `pointofsale`
|
|
|
|
Change the default application password immediately after the first login.
|
|
|
|
## Hostnames and HTTPS
|
|
|
|
OpenSourcePOS validates incoming host headers in production. The `allowed_hostnames` variable defaults to `${main_domain}` and can be set to a comma-separated list such as `pos.example.com,www.pos.example.com`.
|
|
|
|
The template defaults `force_https` to `false` because Dokploy terminates TLS outside the container. Set it to `true` only when your deployment always reaches OpenSourcePOS through HTTPS and the reverse proxy sends the expected headers.
|
|
|
|
## Storage
|
|
|
|
The template creates persistent volumes for:
|
|
|
|
- MariaDB data
|
|
- uploaded files
|
|
- application logs
|
|
"""
|
|
|
|
[config.env]
|
|
MYSQL_ROOT_PASSWORD = "${mysql_root_password}"
|
|
MYSQL_DATABASE = "ospos"
|
|
MYSQL_USER = "admin"
|
|
MYSQL_PASSWORD = "${mysql_password}"
|
|
PHP_TIMEZONE = "${php_timezone}"
|
|
FORCE_HTTPS = "${force_https}"
|
|
ALLOWED_HOSTNAMES = "${allowed_hostnames}"
|