Add Coremarket: Federated Core VM sizing and cloud pricing app
Dockerised FastAPI web app that sizes a VM for a selection of Federated Computer apps (Base/Good/Better/Best tiers or custom) and prices it across 14 cloud providers and ~250 regions, grouped by continent. - Sizing model per app with shared databases, headroom and disk growth - Live pricing from Vultr, Akamai/Linode and Azure (DigitalOcean and Hetzner with tokens); dated catalog for the rest - Hand-maintained Contabo price sheet with editor and table paste, including the one-time setup fee - HIPAA/SOC2/PCI DSS/GDPR status, SMTP port 25, IPv4 and egress notes - Estimated latency to 40 cities, real RTT via Globalping probes - Versioned REST API (/api/v1) with OpenAPI docs and CSV export - Accounts with admin/user roles, first admin from ADMIN_USERNAME / ADMIN_PASSWORD, per-account API keys, SQLite storage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
coremarket:
|
||||
build: .
|
||||
image: coremarket:latest
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
LIVE_PRICING: "1" # 0 = use bundled catalog only
|
||||
LIVE_REFRESH_HOURS: "24"
|
||||
EUR_USD: "1.16"
|
||||
# Optional tokens for providers whose price APIs need auth (read-only tokens are enough):
|
||||
DIGITALOCEAN_TOKEN: ${DIGITALOCEAN_TOKEN:-}
|
||||
HCLOUD_TOKEN: ${HCLOUD_TOKEN:-}
|
||||
GLOBALPING_TOKEN: ${GLOBALPING_TOKEN:-}
|
||||
# First run only: creates the admin account (the app will not start without them until an account exists).
|
||||
ADMIN_USERNAME: ${ADMIN_USERNAME:-}
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-}
|
||||
SESSION_HOURS: ${SESSION_HOURS:-12} # how long a browser sign-in lasts
|
||||
COOKIE_SECURE: ${COOKIE_SECURE:-0} # set to 1 when served over HTTPS
|
||||
# Comma-separated browser origins allowed to call the API cross-site (CORS), e.g. https://example.com
|
||||
CORS_ORIGINS: ${CORS_ORIGINS:-}
|
||||
volumes:
|
||||
- coremarket-data:/data
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
coremarket-data:
|
||||
Reference in New Issue
Block a user