Upload files
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -23,6 +23,16 @@ FROM alpine:${ALPINE_VERSION}
|
||||
|
||||
COPY --from=builder /tmp/build/ /
|
||||
|
||||
#COPY linux-6.12.tar.gz linux-6.12.tar.gz
|
||||
#RUN tar xf linux-6.12.tar.gz && \
|
||||
# ln -s linux-6.12.38 kernel
|
||||
|
||||
#RUN apk --no-cache add git make bash build-base linux-headers && \
|
||||
# git clone --depth=1 https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git && \
|
||||
# cd amneziawg-linux-kernel-module/src && \
|
||||
# make && \
|
||||
# make install
|
||||
|
||||
RUN apk --no-cache add iproute2 iptables bash openresolv dpkg dumb-init iptables-legacy && \
|
||||
chmod +x /usr/bin/awg /usr/bin/awg-quick /usr/bin/amneziawg-go && \
|
||||
ln -s /usr/bin/awg /usr/bin/wg && \
|
||||
|
||||
@@ -3,16 +3,19 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
# image: isonecom/amneziawg-client
|
||||
container_name: awgtest
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
# sysctls:
|
||||
# - net.ipv4.ip_forward=1
|
||||
# - net.ipv4.conf.all.src_valid_mark=1
|
||||
network_mode: host
|
||||
sysctls:
|
||||
- net.ipv4.ip_forward=1
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
# network_mode: host
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
volumes:
|
||||
- ./config:/config:ro
|
||||
- /lib/modules:/lib/modules:ro
|
||||
- ./config:/config
|
||||
# - /etc/resolv.conf:/etc/resolv.conf
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user