Skip to content

Commit 4c30ce1

Browse files
author
Raffael Herrmann
committed
refactor: revert to pre-built image and simplify docs
- Revert docker-compose.yml to use ghcr.io image instead of local build - Comment out SEARCH_HIGHLIGHT_LIMIT environment variable (users can uncomment if needed) - Simplify README by removing redundant Docker Compose usage examples - Change 'several environment variables' to 'environment variables' in docs
1 parent e49284d commit 4c30ce1

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ volumes:
9898

9999
### Configuration Options
100100

101-
massCode Web supports several environment variables for customization:
101+
massCode Web supports environment variables for customization:
102102

103103
#### SEARCH_HIGHLIGHT_LIMIT
104104

@@ -123,17 +123,6 @@ environment:
123123
# No environment variable needed
124124
```
125125

126-
**Usage with Docker Compose:**
127-
128-
```bash
129-
# Set via environment variable
130-
SEARCH_HIGHLIGHT_LIMIT=10 docker-compose up -d
131-
132-
# Or add to docker-compose.yml
133-
environment:
134-
- SEARCH_HIGHLIGHT_LIMIT=10
135-
```
136-
137126
### Manual Docker Run
138127

139128
```bash

docker-compose.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
services:
22
masscode-web:
3-
build:
4-
context: .
3+
image: ghcr.io/codebude/masscode-web:latest
54
ports:
65
- "8080:80"
76
volumes:
87
- ./db.json:/data/db.json:ro
9-
environment:
10-
- SEARCH_HIGHLIGHT_LIMIT=${SEARCH_HIGHLIGHT_LIMIT:-3}
8+
#environment:
9+
# - SEARCH_HIGHLIGHT_LIMIT=3
1110
restart: unless-stopped

0 commit comments

Comments
 (0)