mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
c3c3ed1fb8
* NM-254: add bulk delete apis for users, hosts, nodes and optimise postgres connection settings * NM-254: rm debug logs * NM-254: add bulk delete apis, remove old acl code * NM-254: rm unused flag * NM-254: fix bulk delete bugs, add security and performance improvements - Fix host delete notifying peers before confirming deletion from DB - Fix self-delete vulnerability in bulk user delete - Fix DissasociateNodeFromHost failing when host.Nodes is empty - Fix AssociateNodeToHost/DissasociateNodeFromHost stale read race - Hoist GetAllExtClients outside loop in bulk user delete/status - Move initializeUUID outside master-pod guard for HA correctness * NM-254: return 202 Accepted for async bulk APIs, fix relay allowedIPs and host association error handling - Change all bulk endpoints (hosts, nodes, users, ext clients) from 200 OK to 202 Accepted to correctly signal async processing - Add ReturnAcceptedResponse helper in logic/errors.go - Fix GetAllowedIpsForRelayed returning empty allowedIPs slice, restoring relay connectivity - Make AssociateNodeToHost and DissasociateNodeFromHost return an error when the host DB re-fetch fails instead of silently using stale data - Add bulk-apis.md documenting all five bulk endpoints * NM-254: rm coredns container * NM-254: add bulk apis for node,extclient status, add activity logs to bulk apis * NM-254: add bulk api for connection toggle * NM-254: add network check * Update controllers/hosts.go Co-authored-by: tenki-reviewer[bot] <262613592+tenki-reviewer[bot]@users.noreply.github.com> * NM-254: optimise bulk extclient deletion --------- Co-authored-by: tenki-reviewer[bot] <262613592+tenki-reviewer[bot]@users.noreply.github.com>
77 lines
2.4 KiB
YAML
77 lines
2.4 KiB
YAML
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"
|
|
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
|
|
|