Skip to content

Commit a7683e2

Browse files
committed
Document how to set up Open WebUI with Docker Compose.
Fixes #19.
1 parent 5cd3f98 commit a7683e2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/setup.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ This is adequate for single-user setups not exposed to the outside Internet, whi
6161
* **Why**: The default SELinux label for containers (`container_t`) does not allow the creation of namespaces, which gVisor requires for additional isolation . The `container_engine_t` label allows this.
6262
* If you don't have SELinux enabled, this setting does nothing and may be omitted.
6363

64+
#### Minimal Docker compose file
65+
66+
```
67+
services:
68+
open-webui:
69+
image: ghcr.io/open-webui/open-webui:main
70+
security_opt:
71+
- seccomp:unconfined
72+
- apparmor=unconfined
73+
- label=type:container_engine_t
74+
volumes:
75+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
76+
```
77+
6478
#### Does the "hard way" actually provide more security than privileged mode?
6579

6680
**The short answer**: Yes; a container running in privileged mode basically has full access to the host, whereas the subset of security options listed in the "hard way" still provide isolation.

0 commit comments

Comments
 (0)