Files
cloudflare-domain-manager/docker-compose.yml
T
DenozordecandCursor 1e9cc04a59
quality / commitlint (push) Skipped
CD / update-wiki (push) Successful in 7s
quality / changes (push) Successful in 8s
quality / docker-check (push) Skipped
quality / web (push) Successful in 1m9s
quality / api (push) Successful in 40s
CD / quality (push) Successful in 2m0s
CD / publish (push) Successful in 2m38s
feat(api): enhance health check and DNS management
- Added batch endpoint for health status queries to reduce the number of requests.
- Improved DNS record management with caching and invalidation mechanisms.
- Updated health check service to handle new configurations and improve performance.
- Refactored certificate service to utilize concurrency for checks, enhancing efficiency.
- Removed unused dependencies and optimized package configurations.

Co-authored-by: Cursor <[email protected]>
2026-09-03 16:16:41 +07:00

30 lines
975 B
YAML

services:
app:
image: git.shx.one/denozord/cfdm:latest
ports:
- "8080:8080"
environment:
DATABASE_URL: sqlite:/data/app.db
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN:-}
JWT_SECRET: ${JWT_SECRET:-change-me-in-production}
AUTH_REQUIRED: ${AUTH_REQUIRED:-false}
AUTH_JWT_SECRET: ${AUTH_JWT_SECRET:-${JWT_SECRET:-change-me-in-production}}
AUTH_ISSUER: ${AUTH_ISSUER:-https://auth.shnt.top}
AUTH_PORTAL_URL: ${AUTH_PORTAL_URL:-https://auth.shnt.top}
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
ADMIN_PASSWORD_HASH: ${ADMIN_PASSWORD_HASH:-}
LOG_LEVEL: info
CERT_CHECK_CRON: "0 */6 * * *"
STATIC_DIR: /app/static
volumes:
- ./data:/data
restart: unless-stopped
init: true
mem_limit: 512m
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s