Skip to content

Commit 35781f9

Browse files
committed
doc shm size
1 parent 4a7a605 commit 35781f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ services:
230230
ports:
231231
- 3000:3000
232232
- 3001:3001
233+
shm_size: "1gb"
233234
restart: unless-stopped
234235
```
235236
@@ -245,6 +246,7 @@ docker run -d \
245246
-p 3000:3000 \
246247
-p 3001:3001 \
247248
-v /path/to/config:/config \
249+
--shm-size="1gb" \
248250
--restart unless-stopped \
249251
lscr.io/linuxserver/joplin:latest
250252
```
@@ -261,6 +263,7 @@ Containers are configured using parameters passed at runtime (such as those abov
261263
| `-e PGID=1000` | for GroupID - see below for explanation |
262264
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
263265
| `-v /config` | Users home directory in the container, stores program settings and files. |
266+
| `--shm-size=` | This is needed for electron applications to function properly. |
264267
| `--security-opt seccomp=unconfined` | For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker. |
265268

266269
## Environment variables from files (Docker secrets)

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ param_usage_include_ports: true
2626
param_ports:
2727
- {external_port: "3000", internal_port: "3000", port_desc: "Joplin desktop gui HTTP, must be proxied."}
2828
- {external_port: "3001", internal_port: "3001", port_desc: "Joplin desktop gui HTTPS."}
29+
custom_params:
30+
- {name: "shm-size", name_compose: "shm_size", value: "1gb", desc: "This is needed for electron applications to function properly."}
2931
opt_security_opt_param: true
3032
opt_security_opt_param_vars:
3133
- {run_var: "seccomp=unconfined", compose_var: "seccomp:unconfined", desc: "For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker."}

0 commit comments

Comments
 (0)