Skip to content

Instantly share code, notes, and snippets.

@eastoncrafter
Created August 15, 2022 21:19
Show Gist options
  • Save eastoncrafter/6f9faa5ae6e666f0e0a5e2bc74718b6c to your computer and use it in GitHub Desktop.
Save eastoncrafter/6f9faa5ae6e666f0e0a5e2bc74718b6c to your computer and use it in GitHub Desktop.
A working docker compose file for netmaker, with traefik removed. Make sure to comment out the ssl parts of the mosquitto config, otherwise just leave it as recommended
version: "3.4"
services:
netmaker:
container_name: netmaker
image: gravitl/netmaker:v0.14.6
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
restart: always
volumes:
- /docker/netmaker/dnsconfig:/root/config/dnsconfig
- /docker/netmaker/sqldata:/root/data
- /docker/netmaker/shared_certs:/etc/netmaker
environment:
SERVER_NAME: "broker.netmaker.eastoncrafter.com"
SERVER_HOST: "75.69.253.69"
SERVER_API_CONN_STRING: "api.netmaker.eastoncrafter.com:443"
COREDNS_ADDR: "75.69.253.69"
DNS_MODE: "on"
SERVER_HTTP_HOST: "api.netmaker.eastoncrafter.com"
API_PORT: "8081"
CLIENT_MODE: "on"
MASTER_KEY: "RtWiQW67pzSIFRrKMoKeIqAwlEjMO4"
CORS_ALLOWED_ORIGIN: "*"
DISPLAY_KEYS: "on"
DATABASE: "sqlite"
NODE_ID: "netmaker-server-1"
MQ_HOST: "192.168.50.180"
MQ_PORT: "443"
MQ_SERVER_PORT: "8203"
HOST_NETWORK: "off"
VERBOSITY: "1"
MANAGE_IPTABLES: "on"
PORT_FORWARD_SERVICES: "dns"
ports:
- "51821-51830:51821-51830/udp"
- "8202:8081"
- "50051:50051"
netmaker-ui:
container_name: netmaker-ui
image: gravitl/netmaker-ui:v0.14.6
depends_on:
- netmaker
links:
- "netmaker:api"
restart: always
environment:
BACKEND_URL: "https://api.netmaker.eastoncrafter.com"
ports:
- "8201:80"
coredns:
container_name: coredns
image: coredns/coredns
command: -conf /root/dnsconfig/Corefile
depends_on:
- netmaker
restart: always
volumes:
- /docker/netmaker/dnsconfig:/root/dnsconfig
mq:
container_name: mq
image: eclipse-mosquitto:2.0.11-openssl
depends_on:
- netmaker
restart: unless-stopped
volumes:
- /docker/netmaker/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /docker/netmaker/mosquitto_data:/mosquitto/data
- /docker/netmaker/mosquitto_logs:/mosquitto/log
- /docker/netmaker/shared_certs:/mosquitto/certs
ports:
- "8203:8883"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment