https://github.com/akmalovaa/github-readme-stats-docker
Self hosted github-readme-stats in docker
https://github.com/akmalovaa/github-readme-stats-docker
docker docker-compose github github-readme-stats readme-profile self-hosted
Last synced: 8 months ago
JSON representation
Self hosted github-readme-stats in docker
- Host: GitHub
- URL: https://github.com/akmalovaa/github-readme-stats-docker
- Owner: akmalovaa
- Created: 2023-01-21T10:43:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-21T12:10:18.000Z (about 3 years ago)
- Last Synced: 2025-01-19T10:12:08.109Z (about 1 year ago)
- Topics: docker, docker-compose, github, github-readme-stats, readme-profile, self-hosted
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Self hosted github-readme-stats in docker
Project [github-readme-stats](https://github.com/anuraghazra/github-readme-stats). Dynamically generated stats github readmes and beautiful display of statistics Github profile
Examples [Available Themes](https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md):
[]()
---
### You can just use the service from the author, but there is one problem
> **Warning**
> Project use deploy [vercel.app](https://github-readme-stats.vercel.app/api) and have only allows 5k requests per hour, and sometimes there are errors in the display - [more info](https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance)
I didn't want to do it in the vercel.app and used docker (docker-compose) to simple deploy in my homelab server
# Guide simple deploy using docker
Generate [GitHub Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
Minimal permissions (you can choose nothing at all, just create)
```
git clone https://github.com/akmalovaa/github-readme-stats-docker.git
cd github-readme-stats-docker
```
## docker
```
docker build -t github-state .
docker run --name github-state -p 3000:3000 -e PAT_1=GITHUB_ACCESS_TOKEN -e USER=GITHUB_USER_NAME -d github-state
```
Change command where:
**GITHUB_ACCESS_TOKEN** = your access token
**GITHUB_USER_NAME** = your gihub login
## or docker-compose
Change **.env** file - input your login and token
```
docker-compose up -d
```
## Setting domain name
It remains only to configure the URL (dns, routing, proxy)
I use a dns manager cloudflare and separate self nginx proxy manager
[https://github.akmalov.com/api](https://github.akmalov.com/api)
## Test
**Theme:** tokyonigh
[](https://github.akmalov.com/api?theme=tokyonight&count_private=true&show_icons=true)
[](https://github.akmalov.com/api/top-langs/?theme=tokyonight&count_private=true&show_icons=true)
[](https://github.akmalov.com/api/pin/?repo=github-readme-stats-docker&theme=tokyonight&count_private=true&show_icons=true)