mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-10 11:08:20 +00:00
docs: stop recommending a tmpfs over /cache
/cache holds the browser baked into the image. A tmpfs over it hides that browser, so Byparr downloads it again on every start (the cause behind #439). Also move shm_size and tmpfs in compose.yaml out of the build section, where they never applied to the running container.
This commit is contained in:
1 parent
b041dd2998
commit
c18a7aa77e
2 files changed
+7
-6
No files matched your search
@@ -71,8 +71,9 @@ docker compose up -d
|
|||||||
> shm_size: "1gb"
|
> shm_size: "1gb"
|
||||||
> tmpfs:
|
> tmpfs:
|
||||||
> - /tmp:exec,mode=1777,size=1G
|
> - /tmp:exec,mode=1777,size=1G
|
||||||
> - /cache:mode=1777,size=512M
|
|
||||||
>```
|
>```
|
||||||
|
>
|
||||||
|
> Do not mount a tmpfs over `/cache`: it holds the browser baked into the image, and hiding it makes Byparr download it again on every start.
|
||||||
|
|
||||||
### Docker install
|
### Docker install
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -7,11 +7,11 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
shm_size: "1gb"
|
shm_size: "1gb"
|
||||||
# Recommended to offload disk operations to RAM and reduce disk wear:
|
# Recommended to offload disk operations to RAM and reduce disk wear.
|
||||||
tmpfs:
|
# Leave /cache on the image: it holds the baked-in browser.
|
||||||
- /tmp:exec,mode=1777,size=1G
|
tmpfs:
|
||||||
- /cache:mode=1777,size=512M
|
- /tmp:exec,mode=1777,size=1G
|
||||||
# Uncomment below to use byparr outside of internal network
|
# Uncomment below to use byparr outside of internal network
|
||||||
# ports:
|
# ports:
|
||||||
# - "8191:8191"
|
# - "8191:8191"
|
||||||
Reference in new issue
Block a user