Skip to content

Commit 83f148b

Browse files
committed
Update README and docker-compose for Docker Hub
- Add Docker Hub and GHCR badges to README - Add Docker Hub alternative section to README - Change docker-compose.yml to use docker.io registry - Update manual Docker run examples to show both registries
1 parent f31a37d commit 83f148b

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
A modern web interface for browsing and searching your massCode snippets with syntax highlighting, themes, and copy-to-clipboard functionality.
44

55
[![Docker](https://img.shields.io/badge/Docker-Ready-green?style=flat-square&logo=docker)](#using-docker-compose-recommended)
6+
[![Docker Hub](https://img.shields.io/docker/pulls/codebude/masscode-web?logo=docker)](https://hub.docker.com/repository/docker/codebude/masscode-web/general)
7+
[![GHCR](https://img.shields.io/badge/GHCR-Ready-blue?style=flat-square&logo=github)](https://github.com/codebude/masscode-web/pkgs/container/masscode-web)
68
[![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](LICENSE.txt)
79

810

@@ -90,6 +92,20 @@ You can also use massCode Web with databases stored on network drives or shared
9092
http://localhost:8080
9193
```
9294

95+
### Using Docker Hub (Alternative)
96+
97+
If you prefer to use Docker Hub directly instead of Docker Compose:
98+
99+
```bash
100+
docker run -d \
101+
--name masscode-web \
102+
-p 8080:80 \
103+
-v /path/to/your/masscode/db.json:/data/db.json:ro \
104+
docker.io/codebude/masscode-web:latest
105+
```
106+
107+
Then open `http://localhost:8080` in your browser.
108+
93109
### Volume Mapping
94110

95111
The `docker-compose.yml` includes a volume mount that maps your local `db.json` file to the container:

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
masscode-web:
33
image: ghcr.io/codebude/masscode-web:latest
4+
# image: docker.io/codebude/masscode-web:latest
45
ports:
56
- "8080:80"
67
volumes:

0 commit comments

Comments
 (0)