Skip to content

Commit

Permalink
use image and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Dec 30, 2024
1 parent d863bb7 commit 1c2e420
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,19 @@ A lightweight, single-binary JSON storage service with built-in expiry and multi

### Using Docker

```bash
# Clone the repository
git clone https://github.com/pluja/pocketjson
cd pocketjson

# Set your master API key
echo "MASTER_API_KEY=your-secure-master-key" > .env

# Run the service
docker-compose up -d
```
1. Copy the `docker-compose.yml` file
2. Run `docker-compose up -d`
3. (optional) Set the `MASTER_API_KEY` env variable to a `.env` file

### Direct Usage

- Download the latest release from the releases page.
- Build it yourself:

```bash
# Build and run
# Build
go build
# Run
./pocketjson
```

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
pocketjson:
build: .
image: ghcr.io/pluja/pocketjson:main
container_name: jsonstore
ports:
- "9819:9819"
Expand Down

0 comments on commit 1c2e420

Please # to comment.