coredns api working

This commit is contained in:
afeiszli
2021-04-27 21:07:37 -04:00
parent 9a0bab028e
commit bcbda3faac
2 changed files with 8 additions and 1 deletions

View File

@@ -31,6 +31,12 @@ mongoconn:
opts: '/?authSource=admin' opts: '/?authSource=admin'
EOL EOL
cat >/etc/netmaker/config/Corefile<<EOL
. {
hosts /root/netmaker.hosts
}
EOL
cat >/etc/systemd/system/netmaker.service<<EOL cat >/etc/systemd/system/netmaker.service<<EOL
[Unit] [Unit]
Description=Netmaker Server Description=Netmaker Server
@@ -51,3 +57,4 @@ systemctl start netmaker.service
docker run -d --name netmaker-ui -p 80:80 -e BACKEND_URL="http://$SERVER_DOMAIN:8081" gravitl/netmaker-ui:v0.2 docker run -d --name netmaker-ui -p 80:80 -e BACKEND_URL="http://$SERVER_DOMAIN:8081" gravitl/netmaker-ui:v0.2
docker run -d --name coredns --restart=always --volume=/etc/netmaker/config/:/root/ -p 52:53/udp coredns/coredns -conf /root/Corefile