mirror of
https://github.com/fosrl/docs-v2.git
synced 2026-02-22 21:06:42 +00:00
Merge pull request #33 from buildplan/fix/docker-compose-cap-net-admin
fix: extra space before cap_add removed.
This commit is contained in:
@@ -190,8 +190,8 @@ services:
|
|||||||
container_name: olm
|
container_name: olm
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun:/dev/net/tun
|
- /dev/net/tun:/dev/net/tun
|
||||||
environment:
|
environment:
|
||||||
@@ -209,8 +209,8 @@ services:
|
|||||||
container_name: olm
|
container_name: olm
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun:/dev/net/tun
|
- /dev/net/tun:/dev/net/tun
|
||||||
command:
|
command:
|
||||||
@@ -222,6 +222,7 @@ services:
|
|||||||
**Docker Configuration Notes:**
|
**Docker Configuration Notes:**
|
||||||
|
|
||||||
- `network_mode: host` brings the olm network interface to the host system, allowing the WireGuard tunnel to function properly
|
- `network_mode: host` brings the olm network interface to the host system, allowing the WireGuard tunnel to function properly
|
||||||
|
- `cap_add: - NET_ADMIN` is required to grant the container permission to manage network interfaces
|
||||||
- `devices: - /dev/net/tun:/dev/net/tun` is required to give the container access to the TUN device for creating WireGuard interfaces
|
- `devices: - /dev/net/tun:/dev/net/tun` is required to give the container access to the TUN device for creating WireGuard interfaces
|
||||||
|
|
||||||
### Windows Service
|
### Windows Service
|
||||||
|
|||||||
Reference in New Issue
Block a user