mirror of
https://github.com/gravitl/netmaker.git
synced 2026-01-17 16:30:02 +08:00
* feat(go): define flow events; * feat(go): improve structure; * feat(go): improve structure; * feat(go): remove old flow definitions; * feat(sql): add clickhouse init scripts; * feat(sql): add protobuf spec; * fix(sql): store ip as string; * feat(go): move proto def to grpc dir; * feat(go): use node instead of host as type; optimize protobuf defs; * feat(go): add clickhouse db support; add endpoint to query flows; * fix(go): fix clickhouse config; * fix(go): use error response structure to report error; * feat(go): pass flow logging status to netclient; * feat(go): add peer ip identity map to host peer info; * feat(go): remove prefix from participant obj fields; * feat(go): add flow logs enabled field to host; * feat(go): add filtering to get flow api; * feat(go): fix record struct; * feat(go): add exporter url to server config; * feat(go): add exporter url to server config; * feat(go): enable flow logs by default; * feat(go): update nm-quick.sh; * feat(go): update nm-quick.sh; * feat(go): update nm-quick.sh; * feat(go): update nm-quick.sh; * feat(go): add db initialization logic; * feat(go): filter by network id; * fix(go): connection issue; * fix(go): connection issue; * fix(go): golang builder version; * feat(go): add server settings for flow logs; * feat(go): initialize clickhouse in pro; check for retention; * feat(go): add exporter feature flags; * feat(go): add grpc behind caddy; * feat(go): expose ports correctly; * fix(go): grpc caddyfile config; * fix(go): publish exporter feature flags on license validation; * fix(go): set server name for netmaker exporter; * fix(go): set server name for netmaker exporter; * fix(go): check for nil cancel func; * fix(go): add flow logs field to api host; * fix(go): add flow logs field to api host; * fix(go): remove port from grpc setting; * chore(go): tabs; * feat(go): introduce egress range participant type;. * feat(go): rename egress range to egress route for uniform language; * feat(go): rename egress range to egress route for uniform language; * feat: add peer addr identity map to host peer update; * feat: add address identity map to host peer update; * feat: add address identity map to host peer update; * feat: set correct from and to args; * feat: add support for filtering by node; * feat: use corresponding base image; * feat: update dockerfile base image version; * fix: disable flow logs for all host when global settings are changed;
90 lines
2.7 KiB
YAML
90 lines
2.7 KiB
YAML
version: "3.4"
|
|
|
|
services:
|
|
|
|
netmaker:
|
|
container_name: netmaker
|
|
image: gravitl/netmaker:$SERVER_IMAGE_TAG
|
|
env_file: ./netmaker.env
|
|
restart: always
|
|
volumes:
|
|
- dnsconfig:/root/config/dnsconfig
|
|
- sqldata:/root/data
|
|
environment:
|
|
# config-dependant vars
|
|
- STUN_SERVERS=stun1.l.google.com:19302,stun2.l.google.com:19302,stun3.l.google.com:19302,stun4.l.google.com:19302
|
|
# The domain/host IP indicating the mq broker address
|
|
- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN} # For EMQX broker use `BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}/mqtt`
|
|
# For EMQX broker (uncomment the two lines below)
|
|
#- BROKER_TYPE=emqx
|
|
#- EMQX_REST_ENDPOINT=http://mq:18083
|
|
# The base domain of netmaker
|
|
- SERVER_NAME=${NM_DOMAIN}
|
|
- SERVER_API_CONN_STRING=api.${NM_DOMAIN}:443
|
|
# Address of the CoreDNS server. Defaults to SERVER_HOST
|
|
- COREDNS_ADDR=${SERVER_HOST}
|
|
# Overrides SERVER_HOST if set. Useful for making HTTP available via different interfaces/networks.
|
|
- SERVER_HTTP_HOST=api.${NM_DOMAIN}
|
|
|
|
netmaker-ui:
|
|
container_name: netmaker-ui
|
|
image: gravitl/netmaker-ui:$UI_IMAGE_TAG
|
|
env_file: ./netmaker.env
|
|
environment:
|
|
# config-dependant vars
|
|
# URL where UI will send API requests. Change based on SERVER_HOST, SERVER_HTTP_HOST, and API_PORT
|
|
BACKEND_URL: "https://api.${NM_DOMAIN}"
|
|
depends_on:
|
|
- netmaker
|
|
links:
|
|
- "netmaker:api"
|
|
restart: always
|
|
|
|
caddy:
|
|
image: caddy:2.8.4
|
|
container_name: caddy
|
|
env_file: ./netmaker.env
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
- caddy_data:/data
|
|
- caddy_conf:/config
|
|
ports:
|
|
- "80:80/tcp"
|
|
- "443:443/tcp"
|
|
- "50051:50051"
|
|
|
|
coredns:
|
|
#network_mode: host
|
|
container_name: coredns
|
|
image: coredns/coredns:1.10.1
|
|
command: -conf /root/dnsconfig/Corefile
|
|
env_file: ./netmaker.env
|
|
restart: always
|
|
depends_on:
|
|
- netmaker
|
|
volumes:
|
|
- dnsconfig:/root/dnsconfig
|
|
mq:
|
|
container_name: mq
|
|
image: eclipse-mosquitto:2.0.15-openssl
|
|
env_file: ./netmaker.env
|
|
depends_on:
|
|
- netmaker
|
|
restart: unless-stopped
|
|
command: [ "/mosquitto/config/wait.sh" ]
|
|
volumes:
|
|
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
|
|
- ./wait.sh:/mosquitto/config/wait.sh
|
|
- mosquitto_logs:/mosquitto/log
|
|
- mosquitto_data:/mosquitto/data
|
|
volumes:
|
|
caddy_data: { } # runtime data for caddy
|
|
caddy_conf: { } # configuration file for Caddy
|
|
sqldata: { }
|
|
dnsconfig: { } # storage for coredns
|
|
mosquitto_logs: { } # storage for mqtt logs
|
|
mosquitto_data: { } # storage for mqtt data
|
|
|