Files
zeekay cf4d0b027e templates.hanzo.ai: 1030-blueprint one-click deploy catalog
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.
2026-07-24 01:46:23 -07:00

63 lines
2.2 KiB
YAML

services:
synapse:
image: matrixdotorg/synapse:latest
environment:
- SYNAPSE_SERVER_NAME=${SYNAPSE_SERVER_NAME:?}
- SYNAPSE_REPORT_STATS=${SYNAPSE_REPORT_STATS:-no}
- ENABLE_REGISTRATION=${ENABLE_REGISTRATION:-false}
- SERVICE_USER_ADMIN=${SERVICE_USER_ADMIN}
- SERVICE_PASSWORD_ADMIN=${SERVICE_PASSWORD_ADMIN}
volumes:
- synapse-data:/data
entrypoint: /bin/bash
command:
- -c
- |
# Generate config on first run
if [ ! -f /data/homeserver.yaml ]; then
# Generate default config using SYNAPSE_SERVER_NAME (permanent, used in user IDs)
/start.py generate
# Set public_baseurl to actual deployment URL (may differ from server_name)
# This allows hosting at matrix.example.org while server_name is example.org
if ! grep -q "public_baseurl" /data/homeserver.yaml; then
sed -i "/^server_name:/a public_baseurl: ${SERVICE_URL_SYNAPSE}/" /data/homeserver.yaml
fi
# Configure listener for reverse proxy
sed -i 's/bind_addresses: \[.*\]/bind_addresses: ["0.0.0.0"]/' /data/homeserver.yaml
sed -i '/x_forwarded:/d' /data/homeserver.yaml
sed -i '/type: http/a \ x_forwarded: true' /data/homeserver.yaml
# Enable registration if requested
if [ "${ENABLE_REGISTRATION}" = "true" ] && ! grep -q "enable_registration" /data/homeserver.yaml; then
echo "enable_registration: true" >> /data/homeserver.yaml
fi
fi
# Register admin user if credentials provided
if [ -n "${SERVICE_USER_ADMIN}" ] && [ -n "${SERVICE_PASSWORD_ADMIN}" ]; then
(
while ! curl -sf http://localhost:8008/health > /dev/null 2>&1; do
sleep 2
done
register_new_matrix_user -a \
-u "${SERVICE_USER_ADMIN}" \
-p "${SERVICE_PASSWORD_ADMIN}" \
-c /data/homeserver.yaml \
http://localhost:8008 2>/dev/null || true
) &
fi
exec /start.py
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8008/health
interval: 30s
timeout: 10s
retries: 5
start_period: 20s