|
@@ -6,6 +6,7 @@ services:
|
|
|
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.
|
|
|
- sqldata:/root/data
|
|
|
+ - /root/certs:/etc/netmaker/ # cert management location
|
|
|
cap_add: # Necessary capabilities to set iptables when running in container
|
|
|
- NET_ADMIN
|
|
|
- NET_RAW
|
|
@@ -17,6 +18,7 @@ services:
|
|
|
restart: always
|
|
|
network_mode: host # Must configure with very particular settngs for host networking to work. Do not just set on!
|
|
|
environment:
|
|
|
+ SERVER_NAME: "" # The domain/host IP indicating the mq broker address
|
|
|
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 the HTTP host.
|
|
|
SERVER_HTTP_HOST: "127.0.0.1" # Overrides SERVER_HOST if set. Useful for making HTTP available via different interfaces/networks.
|
|
|
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.
|
|
@@ -34,6 +36,10 @@ services:
|
|
|
TELEMETRY: "on" # Whether or not to send telemetry data to help improve Netmaker. Switch to "off" to opt out of sending telemetry.
|
|
|
MQ_HOST: "mq" # the address of the mq server. If running from docker compose it will be "mq". Otherwise, need to input address. If using "host networking", it will find and detect the IP of the mq container.
|
|
|
HOST_NETWORK: "off" # whether or not host networking is turned on. Only turn on if configured for host networking (see docker-compose.hostnetwork.yml). Will set host-level settings like iptables.
|
|
|
+ MANAGE_IPTABLES: "off" # deprecated
|
|
|
+ ports:
|
|
|
+ - "51821-51830:51821-51830/udp"
|
|
|
+ - "8081:8081"
|
|
|
netmaker-ui: # The Netmaker UI Component
|
|
|
container_name: netmaker-ui
|
|
|
depends_on:
|
|
@@ -66,7 +72,7 @@ services:
|
|
|
- caddy_data:/data
|
|
|
- caddy_conf:/config
|
|
|
mq: # the MQTT broker for netmaker
|
|
|
- image: eclipse-mosquitto:2.0.14
|
|
|
+ image: eclipse-mosquitto:2.0.11-openssl
|
|
|
container_name: mq
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
@@ -76,6 +82,7 @@ services:
|
|
|
- /root/mosquitto.conf:/mosquitto/config/mosquitto.conf # need to pull conf file from github before running (under docker/mosquitto.conf)
|
|
|
- mosquitto_data:/mosquitto/data
|
|
|
- mosquitto_logs:/mosquitto/log
|
|
|
+ - /root/certs/:/mosquitto/certs/
|
|
|
volumes:
|
|
|
caddy_data: {} # storage for caddy data
|
|
|
caddy_conf: {} # storage for caddy configuration file
|