mirror of
https://github.com/hanzoai/templates-blueprints.git
synced 2026-10-30 14:55:00 +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.
71 lines
2.0 KiB
YAML
71 lines
2.0 KiB
YAML
services:
|
|
directus:
|
|
image: directus/directus:11
|
|
volumes:
|
|
- directus-uploads:/directus/uploads
|
|
- directus-extensions:/directus/extensions
|
|
- directus-templates:/directus/templates
|
|
environment:
|
|
- KEY=$SERVICE_BASE64_64_KEY
|
|
- SECRET=$SERVICE_BASE64_64_SECRET
|
|
- ADMIN_EMAIL=${ADMIN_EMAIL:[email protected]}
|
|
- ADMIN_PASSWORD=$SERVICE_PASSWORD_ADMIN
|
|
- DB_CLIENT=postgres
|
|
- DB_HOST=postgresql
|
|
- DB_PORT=5432
|
|
- DB_DATABASE=${POSTGRESQL_DATABASE:-directus}
|
|
- DB_USER=$SERVICE_USER_POSTGRESQL
|
|
- DB_PASSWORD=$SERVICE_PASSWORD_POSTGRESQL
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- WEBSOCKETS_ENABLED=true
|
|
- CORS_ENABLED=${CORS_ENABLED:-true}
|
|
- CORS_ORIGIN=${CORS_ORIGIN}
|
|
- CORS_METHODS=${CORS_METHODS:-GET,POST,PATCH,DELETE,OPTIONS}
|
|
- CORS_ALLOWED_HEADERS=${CORS_ALLOWED_HEADERS:-Content-Type,Authorization}
|
|
- CORS_CREDENTIALS=${CORS_CREDENTIALS:-true}
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- wget
|
|
- -q
|
|
- --spider
|
|
- http://127.0.0.1:8055/admin/login
|
|
interval: 5s
|
|
timeout: 20s
|
|
retries: 10
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
postgresql:
|
|
image: postgis/postgis:16-3.4-alpine
|
|
platform: linux/amd64
|
|
volumes:
|
|
- directus-postgresql-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
|
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
|
- POSTGRES_DB=${POSTGRESQL_DATABASE:-directus}
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}
|
|
interval: 5s
|
|
timeout: 20s
|
|
retries: 10
|
|
redis:
|
|
image: redis:7-alpine
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- directus-redis-data:/data
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- redis-cli
|
|
- ping
|
|
interval: 5s
|
|
timeout: 20s
|
|
retries: 10
|