Skip to content

Commit 1c2e420

Browse files
committed
use image and update readme
1 parent d863bb7 commit 1c2e420

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,19 @@ A lightweight, single-binary JSON storage service with built-in expiry and multi
1717

1818
### Using Docker
1919

20-
```bash
21-
# Clone the repository
22-
git clone https://github.com/pluja/pocketjson
23-
cd pocketjson
24-
25-
# Set your master API key
26-
echo "MASTER_API_KEY=your-secure-master-key" > .env
27-
28-
# Run the service
29-
docker-compose up -d
30-
```
20+
1. Copy the `docker-compose.yml` file
21+
2. Run `docker-compose up -d`
22+
3. (optional) Set the `MASTER_API_KEY` env variable to a `.env` file
3123

3224
### Direct Usage
3325

26+
- Download the latest release from the releases page.
27+
- Build it yourself:
28+
3429
```bash
35-
# Build and run
30+
# Build
3631
go build
32+
# Run
3733
./pocketjson
3834
```
3935

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
pocketjson:
3-
build: .
3+
image: ghcr.io/pluja/pocketjson:main
44
container_name: jsonstore
55
ports:
66
- "9819:9819"

0 commit comments

Comments
 (0)