Skip to content

Commit

Permalink
Document how to set up Open WebUI with Docker Compose.
Browse files Browse the repository at this point in the history
Fixes #19.
  • Loading branch information
EtiennePerot committed Nov 10, 2024
1 parent 5cd3f98 commit fe546d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ This is adequate for single-user setups not exposed to the outside Internet, whi
* **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.
* If you don't have SELinux enabled, this setting does nothing and may be omitted.

#### Minimal Docker compose file

```yaml
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
security_opt:
- seccomp:unconfined
- apparmor=unconfined
- label=type:container_engine_t
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
```
#### Does the "hard way" actually provide more security than privileged mode?
**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.
Expand Down

0 comments on commit fe546d0

Please sign in to comment.