Skip to content

Commit

Permalink
Add docs about running with data persistency
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 20, 2024
1 parent a44d6d7 commit e6ab1d0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@ Heavily inspired by [FitTrackee](https://github.com/SamR1/FitTrackee) :heart:.
Run the latest master image from GitHub Container Registry:

```bash
docker run --rm -i -p 8080:8080 ghcr.io/jovandeginste/workouts:master
docker run -p 8080:8080 ghcr.io/jovandeginste/workouts:master
```

Open your browser at `http://localhost:8080`

To persist data and sessions, run:

```bash
docker run -p 8080:8080 \
-e WT_JWT_ENCRYPTION_KEY=my-secret-key \
-v $PWD/data:/data \
ghcr.io/jovandeginste/workouts:master
```

### Natively

Download a pre-built binary or build it yourself (see [Development](#development) below).
Expand All @@ -26,6 +35,13 @@ chmod a+x ./workouts
./workouts
```

To persist sessions, run:

```bash
export WT_JWT_ENCRYPTION_KEY=my-secret-key
./workouts
```

This will create a new database file in the current directory and start the web server at `http://localhost:8080`.

## Screenshots
Expand Down

0 comments on commit e6ab1d0

Please sign in to comment.