mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(deploy): add self-host compose file and document self-hosting
The repo had three Dockerfiles but nothing that ran them together, and the README never mentioned self-hosting. The only deploy path was deploy/compose.yml, which is bound to the production box: it pulls private ghcr images and hard-fails on seven env vars including OAuth credentials, so nobody else could run it. Every one of those vars already has a default in the service config; the :?missing guards are a production-deploy check, not an application requirement. This adds a root compose file that builds the three services from source and needs only GITHUB_PAT and FETCHER_INTERNAL_TOKEN. deploy/compose.yml is unchanged, so production is unaffected. Verified by running it: all three images build, all five containers start, the generator serves the SPA and /api/health, and edge answers /<username> with upstream_ok true. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS
This commit is contained in:
co-authored by
Claude Opus 5
parent
107273a1c8
commit
27645048f1
@@ -0,0 +1,14 @@
|
||||
# Copy to .env and fill in. Only these two matter.
|
||||
|
||||
# A GitHub personal access token. Classic or fine-grained, no scopes needed
|
||||
# for public data - it is only used to raise your GitHub API rate limit.
|
||||
# Create one at https://github.com/settings/tokens
|
||||
GITHUB_PAT=
|
||||
|
||||
# Shared secret the three services use to talk to each other. Any random
|
||||
# string; it never leaves your machine. Generate one with:
|
||||
# openssl rand -hex 32
|
||||
FETCHER_INTERNAL_TOKEN=
|
||||
|
||||
# Port the card service listens on (http://localhost:PORT).
|
||||
#GHSTATS_PORT=5003
|
||||
Reference in New Issue
Block a user