2021-10-04 03:50:22 +08:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
services:
|
|
|
|
netmaker:
|
|
|
|
container_name: netmaker
|
2022-03-15 01:31:12 +08:00
|
|
|
image: gravitl/netmaker:v0.12.0
|
2021-10-04 03:50:22 +08:00
|
|
|
volumes:
|
2021-11-04 05:57:29 +08:00
|
|
|
- dnsconfig:/root/config/dnsconfig
|
2021-10-04 03:50:22 +08:00
|
|
|
- sqldata:/root/data
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2022-02-09 11:22:16 +08:00
|
|
|
- NET_RAW
|
|
|
|
- SYS_MODULE
|
|
|
|
sysctls:
|
|
|
|
- net.ipv4.ip_forward=1
|
|
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
2021-10-04 03:50:22 +08:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
SERVER_HOST: "SERVER_PUBLIC_IP"
|
|
|
|
SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
|
|
|
|
SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
|
|
|
|
COREDNS_ADDR: "SERVER_PUBLIC_IP"
|
|
|
|
GRPC_SSL: "on"
|
|
|
|
DNS_MODE: "on"
|
|
|
|
SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
|
|
|
|
SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
|
|
|
|
API_PORT: "8081"
|
|
|
|
GRPC_PORT: "50051"
|
2021-10-07 23:28:24 +08:00
|
|
|
CLIENT_MODE: "on"
|
2021-10-04 03:50:22 +08:00
|
|
|
MASTER_KEY: "REPLACE_MASTER_KEY"
|
|
|
|
CORS_ALLOWED_ORIGIN: "*"
|
2021-11-17 11:39:28 +08:00
|
|
|
DISPLAY_KEYS: "on"
|
2021-10-04 03:50:22 +08:00
|
|
|
DATABASE: "sqlite"
|
2021-11-04 05:57:29 +08:00
|
|
|
NODE_ID: "netmaker-server-1"
|
2022-02-09 11:22:16 +08:00
|
|
|
MQ_HOST: "mq"
|
|
|
|
HOST_NETWORK: "off"
|
|
|
|
MANAGE_IPTABLES: "on"
|
|
|
|
PORT_FORWARD_SERVICES: "mq,dns,ssh"
|
|
|
|
VERBOSITY: "1"
|
2022-01-23 01:31:32 +08:00
|
|
|
ports:
|
|
|
|
- "51821-51830:51821-51830/udp"
|
|
|
|
- "8081:8081"
|
|
|
|
- "50051:50051"
|
2021-10-04 03:50:22 +08:00
|
|
|
netmaker-ui:
|
|
|
|
container_name: netmaker-ui
|
|
|
|
depends_on:
|
|
|
|
- netmaker
|
2022-03-15 01:31:12 +08:00
|
|
|
image: gravitl/netmaker-ui:v0.12.0
|
2021-10-04 03:50:22 +08:00
|
|
|
links:
|
|
|
|
- "netmaker:api"
|
2021-11-05 23:40:10 +08:00
|
|
|
ports:
|
|
|
|
- "8082:80"
|
2021-10-04 03:50:22 +08:00
|
|
|
environment:
|
|
|
|
BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
|
|
|
|
restart: always
|
|
|
|
coredns:
|
|
|
|
depends_on:
|
|
|
|
- netmaker
|
|
|
|
image: coredns/coredns
|
|
|
|
command: -conf /root/dnsconfig/Corefile
|
|
|
|
container_name: coredns
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "COREDNS_IP:53:53/udp"
|
|
|
|
- "COREDNS_IP:53:53/tcp"
|
|
|
|
volumes:
|
|
|
|
- dnsconfig:/root/dnsconfig
|
2022-02-09 11:22:16 +08:00
|
|
|
mq:
|
|
|
|
image: eclipse-mosquitto:2.0.14
|
|
|
|
container_name: mq
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "1883:1883"
|
|
|
|
volumes:
|
|
|
|
- /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
|
|
|
|
- mosquitto_data:/mosquitto/data
|
|
|
|
- mosquitto_logs:/mosquitto/log
|
2021-10-04 03:50:22 +08:00
|
|
|
volumes:
|
|
|
|
sqldata: {}
|
|
|
|
dnsconfig: {}
|
2022-02-09 11:22:16 +08:00
|
|
|
mosquitto_data: {}
|
|
|
|
mosquitto_logs: {}
|
2022-01-23 01:31:32 +08:00
|
|
|
|