You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rqlite: # The rqlite instance that backs up Netmaker
71
+
container_name: rqlite
72
+
image: rqlite/rqlite
73
+
network_mode: host
74
+
restart: always
75
+
volumes:
76
+
- sqldata:/rqlite/file/data
77
+
netmaker: # The Primary Server for running Netmaker
78
+
privileged: true # Necessary to run sudo/root level commands on host system. Take out if not running with CLIENT_MODE=on
79
+
container_name: netmaker
80
+
depends_on:
81
+
- mongodb
82
+
image: gravitl/netmaker:v0.7
83
+
volumes: # Volume mounts necessary for Netmaker to control netclient, wireguard, and networking on host (except dnsconfig, which is where dns config files are stored for use by CoreDNS)
84
+
- ./:/local
85
+
- /etc/netclient:/etc/netclient
86
+
- dnsconfig:/root/config/dnsconfig # Netmaker writes Corefile to this location, which gets mounted by CoreDNS for DNS configuration.
cap_add: # Necessary for CLIENT_MODE. Should be removed if turned off.
93
+
- NET_ADMIN
94
+
- SYS_MODULE
95
+
restart: always
96
+
network_mode: host # Necessary for CLIENT_MODE. Should be removed if turned off, but then need to add port mappings
97
+
environment:
98
+
GRPC_SSL: "off"# Tells clients to use SSL to connect to GRPC. Switch to on to turn on.
99
+
SERVER_API_CONN_STRING: ""# Changes the api connection string. IP:PORT format. By default is empty and uses SERVER_HOST:API_PORT
100
+
SERVER_GRPC_CONN_STRING: ""# Changes the grpc connection string. IP:PORT format. By default is empty and uses SERVER_HOST:GRPC_PORT
101
+
SERVER_HOST: ""# All the Docker Compose files pre-populate this with HOST_IP, which you replace as part of the install instructions. This will set both HTTP and GRPC host.
102
+
API_PORT: 8081# The HTTP API port for Netmaker. Used for API calls / communication from front end. If changed, need to change port of BACKEND_URL for netmaker-ui.
103
+
GRPC_PORT: 50051# The GRPC port for Netmaker. Used for communications from nodes.
104
+
MASTER_KEY: "secretkey"# The admin master key for accessing the API. Change this in any production installation.
105
+
CORS_ALLOWED_ORIGIN: "*"# The "allowed origin" for API requests. Change to restrict where API requests can come from.
106
+
REST_BACKEND: "on"# Enables the REST backend (API running on API_PORT at SERVER_HTTP_HOST). Change to "off" to turn off.
107
+
AGENT_BACKEND: "on"# Enables the AGENT backend (GRPC running on GRPC_PORT at SERVER_GRPC_HOST). Change to "off" to turn off.
108
+
DNS_MODE: "on"# Enables DNS Mode, meaning config files will be generated for CoreDNS. Note, turning "off" does not remove CoreDNS. You still need to remove CoreDNS from compose file.
109
+
netmaker-ui: # The Netmaker UI Component
110
+
container_name: netmaker-ui
111
+
depends_on:
112
+
- netmaker
113
+
image: gravitl/netmaker-ui:v0.7
114
+
links:
115
+
- "netmaker:api"
116
+
ports:
117
+
- "8082:80"
118
+
environment:
119
+
BACKEND_URL: "http://HOST_IP:8081"# URL where UI will send API requests. Change based on SERVER_HOST, SERVER_HTTP_HOST, and API_PORT
120
+
coredns: # The DNS Server. Remove this section if DNS_MODE="off"
121
+
depends_on:
122
+
- netmaker
123
+
image: coredns/coredns
124
+
command: -conf /root/dnsconfig/Corefile # Config location for Corefile. This is the path of file which is also mounted to Netmaker for modification.
125
+
container_name: coredns
126
+
restart: always
127
+
ports:
128
+
- "53:53/udp"# Likely needs to run at port 53 for adequate nameserver usage.
0 commit comments