netmaker/compose/docker-compose.ee.yml

145 lines
3.8 KiB
YAML
Raw Normal View History

2022-09-21 06:11:58 +08:00
version: "3.4"
services:
netmaker:
container_name: netmaker
2022-12-23 00:59:31 +08:00
image: gravitl/netmaker:v0.17.1-ee
2022-09-21 06:11:58 +08:00
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
restart: always
volumes:
- dnsconfig:/root/config/dnsconfig
- sqldata:/root/data
- mosquitto_data:/etc/netmaker
2022-09-21 06:11:58 +08:00
environment:
SERVER_NAME: "broker.NETMAKER_BASE_DOMAIN"
SERVER_HOST: "SERVER_PUBLIC_IP"
SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
COREDNS_ADDR: "SERVER_PUBLIC_IP"
DNS_MODE: "on"
SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
API_PORT: "8081"
CLIENT_MODE: "on"
MASTER_KEY: "REPLACE_MASTER_KEY"
CORS_ALLOWED_ORIGIN: "*"
DISPLAY_KEYS: "on"
DATABASE: "sqlite"
NODE_ID: "netmaker-server-1"
MQ_HOST: "mq"
MQ_PORT: "443"
MQ_SERVER_PORT: "1883"
HOST_NETWORK: "off"
VERBOSITY: "1"
MANAGE_IPTABLES: "on"
PORT_FORWARD_SERVICES: "dns"
METRICS_EXPORTER: "on"
LICENSE_KEY: "YOUR_LICENSE_KEY"
NETMAKER_ACCOUNT_ID: "YOUR_ACCOUNT_ID"
2022-09-30 01:24:41 +08:00
MQ_ADMIN_PASSWORD: "REPLACE_MQ_ADMIN_PASSWORD"
2022-09-21 06:11:58 +08:00
ports:
- "51821-51830:51821-51830/udp"
netmaker-ui:
container_name: netmaker-ui
2022-12-23 00:59:31 +08:00
image: gravitl/netmaker-ui:v0.17.1
2022-09-21 06:11:58 +08:00
depends_on:
- netmaker
links:
- "netmaker:api"
restart: always
environment:
BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
2022-11-29 02:42:26 +08:00
caddy:
image: caddy:2.6.2
container_name: caddy
restart: unless-stopped
volumes:
- /root/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_conf:/config
ports:
- "80:80"
- "443:443"
2022-09-21 06:11:58 +08:00
coredns:
container_name: coredns
image: coredns/coredns
command: -conf /root/dnsconfig/Corefile
depends_on:
- netmaker
restart: always
volumes:
- dnsconfig:/root/dnsconfig
mq:
container_name: mq
image: eclipse-mosquitto:2.0.15-openssl
2022-09-21 06:11:58 +08:00
depends_on:
- netmaker
restart: unless-stopped
2022-09-30 01:24:41 +08:00
command: ["/mosquitto/config/wait.sh"]
environment:
NETMAKER_SERVER_HOST: "https://api.NETMAKER_BASE_DOMAIN"
2022-09-21 06:11:58 +08:00
volumes:
- /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
2022-09-30 01:24:41 +08:00
- /root/wait.sh:/mosquitto/config/wait.sh
2022-09-21 06:11:58 +08:00
- mosquitto_data:/mosquitto/data
- mosquitto_logs:/mosquitto/log
2022-11-29 02:42:26 +08:00
ports:
- "1883:1883"
- "8883:8883"
2022-09-21 06:11:58 +08:00
prometheus:
container_name: prometheus
image: gravitl/netmaker-prometheus:latest
environment:
NETMAKER_METRICS_TARGET: "netmaker-exporter.NETMAKER_BASE_DOMAIN"
LICENSE_KEY: "YOUR_LICENSE_KEY"
2022-09-21 06:11:58 +08:00
restart: always
volumes:
- prometheus_data:/prometheus
depends_on:
- netmaker
grafana:
container_name: grafana
image: gravitl/netmaker-grafana:latest
environment:
PROMETHEUS_HOST: "prometheus.NETMAKER_BASE_DOMAIN"
NETMAKER_METRICS_TARGET: "netmaker-exporter.NETMAKER_BASE_DOMAIN"
2022-10-06 16:33:56 +08:00
LICENSE_KEY: "YOUR_LICENSE_KEY"
volumes:
- grafana_data:/var/lib/grafana
2022-09-21 06:11:58 +08:00
restart: always
links:
- prometheus
depends_on:
- prometheus
- netmaker
netmaker-exporter:
container_name: netmaker-exporter
image: gravitl/netmaker-exporter:latest
restart: always
depends_on:
- netmaker
environment:
MQ_HOST: "mq"
MQ_PORT: "443"
MQ_SERVER_PORT: "1883"
2022-09-21 06:11:58 +08:00
PROMETHEUS: "on"
VERBOSITY: "1"
API_PORT: "8085"
2022-09-30 12:46:57 +08:00
LICENSE_KEY: "YOUR_LICENSE_KEY"
2022-09-21 06:11:58 +08:00
PROMETHEUS_HOST: https://prometheus.NETMAKER_BASE_DOMAIN
volumes:
2022-11-29 02:42:26 +08:00
caddy_data: {}
caddy_conf: {}
2022-09-21 06:11:58 +08:00
sqldata: {}
dnsconfig: {}
mosquitto_data: {}
mosquitto_logs: {}
prometheus_data: {}
grafana_data: {}