add shm setting

This commit is contained in:
thelamer 2023-12-07 18:52:03 -08:00
parent 11078da7dc
commit a216a0eb4d
2 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ services:
ports:
- 3000:3000
- 3001:3001
shm_size: "1gb"
restart: unless-stopped
```
@ -133,6 +134,7 @@ docker run -d \
-p 3000:3000 \
-p 3001:3001 \
-v /path/to/config:/config \
--shm-size="1gb" \
--restart unless-stopped \
lscr.io/linuxserver/ferdium:latest
```
@ -149,6 +151,7 @@ Containers are configured using parameters passed at runtime (such as those abov
| `-e PGID=1000` | for GroupID - see below for explanation |
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
| `-v /config` | Users home directory in the container, stores program settings and files. |
| `--shm-size=` | Required for electron apps to fucntion properly. |
| `--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. |
## Environment variables from files (Docker secrets)

View File

@ -29,6 +29,8 @@ param_usage_include_ports: true
param_ports:
- { external_port: "3000", internal_port: "3000", port_desc: "Ferdium desktop gui." }
- { external_port: "3001", internal_port: "3001", port_desc: "Ferdium desktop gui HTTPS." }
custom_params:
- { name: "shm-size", name_compose: "shm_size", value: "1gb",desc: "Required for electron apps to fucntion properly." }
opt_security_opt_param: true
opt_security_opt_param_vars:
- { 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." }