netmaker/compose/docker-compose.ee.yml

130 lines
3.6 KiB
YAML
Raw Normal View History

2022-09-21 06:11:58 +08:00
version: "3.4"
services:
netmaker:
container_name: netmaker
2023-02-17 12:21:24 +08:00
image: gravitl/netmaker:REPLACE_SERVER_IMAGE_TAG
restart: on-failure
2022-09-21 06:11:58 +08:00
volumes:
- dnsconfig:/root/config/dnsconfig
- sqldata:/root/data
environment:
2023-04-12 05:56:11 +08:00
BROKER_ENDPOINT: "wss://broker.NETMAKER_BASE_DOMAIN"
2023-02-14 05:42:18 +08:00
SERVER_NAME: "NETMAKER_BASE_DOMAIN"
2023-03-02 06:10:36 +08:00
STUN_LIST: "stun.NETMAKER_BASE_DOMAIN:3478,stun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302"
2022-09-21 06:11:58 +08:00
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"
2023-03-21 20:08:59 +08:00
NETCLIENT_AUTO_UPDATE: "enabled"
2022-09-21 06:11:58 +08:00
API_PORT: "8081"
MASTER_KEY: "REPLACE_MASTER_KEY"
CORS_ALLOWED_ORIGIN: "*"
DISPLAY_KEYS: "on"
DATABASE: "sqlite"
NODE_ID: "netmaker-server-1"
2023-04-12 05:56:11 +08:00
SERVER_BROKER_ENDPOINT: "ws://mq:1883"
2023-02-14 05:42:18 +08:00
MQ_USERNAME: "REPLACE_MQ_USERNAME"
2023-02-15 05:45:48 +08:00
MQ_PASSWORD: "REPLACE_MQ_PASSWORD"
2023-02-14 05:42:18 +08:00
STUN_PORT: "3478"
2022-09-21 06:11:58 +08:00
VERBOSITY: "1"
METRICS_EXPORTER: "on"
LICENSE_KEY: "YOUR_LICENSE_KEY"
NETMAKER_ACCOUNT_ID: "YOUR_ACCOUNT_ID"
2023-03-20 22:19:36 +08:00
DEFAULT_PROXY_MODE: "off"
2022-09-21 06:11:58 +08:00
ports:
2023-02-08 15:06:00 +08:00
- "3478:3478/udp"
2022-09-21 06:11:58 +08:00
netmaker-ui:
container_name: netmaker-ui
2023-02-17 12:21:24 +08:00
image: gravitl/netmaker-ui:REPLACE_UI_IMAGE_TAG
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
2023-04-12 05:56:11 +08:00
image: eclipse-mosquitto:2.0.15-openssl
depends_on:
- netmaker
2022-09-21 06:11:58 +08:00
restart: unless-stopped
2023-04-12 05:56:11 +08:00
command: ["/mosquitto/config/wait.sh"]
2022-09-30 01:24:41 +08:00
environment:
2023-04-12 05:56:11 +08:00
MQ_PASSWORD: "REPLACE_MQ_PASSWORD"
MQ_USERNAME: "REPLACE_MQ_USERNAME"
volumes:
- /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /root/wait.sh:/mosquitto/config/wait.sh
- mosquitto_logs:/mosquitto/log
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:
2023-04-13 02:34:56 +08:00
SERVER_BROKER_ENDPOINT: "ws://mq:1883"
BROKER_ENDPOINT: "wss://broker.NETMAKER_BASE_DOMAIN"
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_logs: {}
prometheus_data: {}
grafana_data: {}