diff --git a/Dockerfile b/Dockerfile index e03cd71..2be1561 100644 --- a/Dockerfile +++ b/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 && \ diff --git a/docker-compose.yml b/docker-compose.yml index 86334d9..f526814 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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