You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Add Docker support
* feat: Update Dockerfile to enhance security headers and support SVG content
* feat: Update Dockerfile to use PHP 8.3 and latest Composer version
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,39 @@ Heroku is another great option for hosting the files. All features are supported
253
253
254
254
You can transfer the files to any webserver using FTP or other means, then refer to [CONTRIBUTING.md](/CONTRIBUTING.md) for installation steps.
255
255
256
+
### 🐳 Docker
257
+
258
+
Docker is a great option for self-hosting with full control over your environment. All features are supported including PNG rendering with Inkscape. Expand the instructions below to learn how to deploy with Docker.
259
+
260
+
<details>
261
+
<summary><b>Instructions for deploying with Docker</b></summary>
262
+
263
+
### Step-by-step instructions for deploying with Docker
2. Visit https://github.com/settings/tokens/new?description=GitHub%20Readme%20Streak%20Stats to create a new Personal Access Token (no scopes required)
272
+
273
+
3. Scroll to the bottom and click "Generate token"
274
+
275
+
4. Build the Docker image:
276
+
```bash
277
+
docker build -t streak-stats .
278
+
```
279
+
280
+
5. Run the container with your GitHub token:
281
+
```bash
282
+
docker run -d -p 8080:80 -e TOKEN=your_github_token_here streak-stats
283
+
```
284
+
285
+
6. Visit http://localhost:8080 to access your self-hosted instance
0 commit comments