Skip to content

Commit

Permalink
docs(kubernetes): add tmp volume (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackeryarn authored Dec 31, 2024
1 parent 306487a commit 8be5775
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ spec:
- name: app
hostPath:
path: /path/to/data/dir
- name: tmp
emptyDir:
medium: Memory
containers:
- name: shiori
image: ghcr.io/go-shiori/shiori:latest
Expand All @@ -103,6 +106,8 @@ spec:
volumeMounts:
- mountPath: /srv/shiori
name: app
- mountPath: /tmp
name: tmp
env:
- name: SHIORI_DIR
value: /srv/shiori
Expand All @@ -112,7 +117,10 @@ spec:
Here we are using a local directory to persist Shiori's data. You will need
to replace `/path/to/data/dir` with the path to the directory where you want
to keep your data. Since we haven't configured a database in particular,
to keep your data. We are also mounting an `EmptyDir` volume for `/tmp` so
we can successfully generate ebooks.

Since we haven't configured a database in particular,
Shiori will use SQLite. I don't think Postgres or MySQL is worth it for
such an app, but that's up to you. If you decide to use SQLite, I strongly
suggest to keep `replicas` set to 1 since SQLite usually allows at most
Expand Down

0 comments on commit 8be5775

Please sign in to comment.