mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
move wg to container
This commit is contained in:
parent
34145288e5
commit
e7ebc2463e
7 changed files with 2 additions and 7 deletions
|
@ -10,7 +10,7 @@ RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'main.version=${version}'"
|
||||||
FROM alpine:3.14.3
|
FROM alpine:3.14.3
|
||||||
|
|
||||||
# add a c lib
|
# add a c lib
|
||||||
RUN apk add gcompat iptables
|
RUN apk add gcompat iptables wireguard-tools
|
||||||
# set the working directory
|
# set the working directory
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
RUN mkdir -p /etc/netclient/config
|
RUN mkdir -p /etc/netclient/config
|
||||||
|
|
|
@ -6,7 +6,6 @@ services:
|
||||||
image: gravitl/netmaker:v0.11.0
|
image: gravitl/netmaker:v0.11.0
|
||||||
volumes:
|
volumes:
|
||||||
- dnsconfig:/root/config/dnsconfig
|
- dnsconfig:/root/config/dnsconfig
|
||||||
- /usr/bin/wg:/usr/bin/wg
|
|
||||||
- sqldata:/root/data
|
- sqldata:/root/data
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
|
@ -6,7 +6,6 @@ services:
|
||||||
image: gravitl/netmaker:v0.11.0
|
image: gravitl/netmaker:v0.11.0
|
||||||
volumes:
|
volumes:
|
||||||
- dnsconfig:/root/config/dnsconfig
|
- dnsconfig:/root/config/dnsconfig
|
||||||
- /usr/bin/wg:/usr/bin/wg
|
|
||||||
- sqldata:/root/data
|
- sqldata:/root/data
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
|
@ -6,7 +6,6 @@ services:
|
||||||
image: gravitl/netmaker:v0.11.0
|
image: gravitl/netmaker:v0.11.0
|
||||||
volumes:
|
volumes:
|
||||||
- dnsconfig:/root/config/dnsconfig
|
- dnsconfig:/root/config/dnsconfig
|
||||||
- /usr/bin/wg:/usr/bin/wg
|
|
||||||
- sqldata:/root/data
|
- sqldata:/root/data
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
|
@ -5,7 +5,6 @@ services:
|
||||||
image: gravitl/netmaker:v0.11.0
|
image: gravitl/netmaker:v0.11.0
|
||||||
volumes: # Volume mounts necessary for CLIENT_MODE to control wireguard networking on host (except dnsconfig, which is where dns config files are stored for use by CoreDNS)
|
volumes: # Volume mounts necessary for CLIENT_MODE to control wireguard networking on host (except dnsconfig, which is where dns config files are stored for use by CoreDNS)
|
||||||
- dnsconfig:/root/config/dnsconfig # Netmaker writes Corefile to this location, which gets mounted by CoreDNS for DNS configuration.
|
- dnsconfig:/root/config/dnsconfig # Netmaker writes Corefile to this location, which gets mounted by CoreDNS for DNS configuration.
|
||||||
- /usr/bin/wg:/usr/bin/wg
|
|
||||||
- sqldata:/root/data
|
- sqldata:/root/data
|
||||||
cap_add: # Necessary capabilities to set iptables when running in container
|
cap_add: # Necessary capabilities to set iptables when running in container
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
|
@ -6,7 +6,6 @@ services:
|
||||||
image: gravitl/netmaker:v0.11.0
|
image: gravitl/netmaker:v0.11.0
|
||||||
volumes:
|
volumes:
|
||||||
- dnsconfig:/root/config/dnsconfig
|
- dnsconfig:/root/config/dnsconfig
|
||||||
- /usr/bin/wg:/usr/bin/wg
|
|
||||||
- sqldata:/root/data
|
- sqldata:/root/data
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
|
@ -11,7 +11,7 @@ RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=1 /usr/local/go/bin/go build -ldflags="-
|
||||||
|
|
||||||
FROM alpine:3.13.6
|
FROM alpine:3.13.6
|
||||||
# add a c lib
|
# add a c lib
|
||||||
RUN apk add gcompat iptables
|
RUN apk add gcompat iptables wireguard-tools
|
||||||
# set the working directory
|
# set the working directory
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue