Add network capabilities and install iptables in Docker setup
This commit is contained in:
@@ -4,6 +4,7 @@ FROM dart:3.9.0-100.2.beta
|
|||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
wireguard-tools \
|
wireguard-tools \
|
||||||
iproute2 \
|
iproute2 \
|
||||||
|
iptables \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -14,4 +14,8 @@ services:
|
|||||||
- "51820:51820/udp"
|
- "51820:51820/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/wireguard:/var/run/wireguard
|
- /var/run/wireguard:/var/run/wireguard
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
devices:
|
||||||
|
- /dev/net/tun
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user