123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- version: "3.4"
- services:
- netmaker:
- container_name: netmaker
- image: gravitl/netmaker:v0.17.1
- restart: always
- volumes:
- - dnsconfig:/root/config/dnsconfig
- - sqldata:/root/data
- - mosquitto_data:/etc/netmaker
- environment:
- BROKER_NAME: "broker.NETMAKER_BASE_DOMAIN"
- SERVER_NAME: "NETMAKER_BASE_DOMAIN"
- STUN_DOMAIN: "stun.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"
- 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"
- VERBOSITY: "1"
- MQ_ADMIN_PASSWORD: "REPLACE_MQ_ADMIN_PASSWORD"
- STUN_PORT: "3478"
- PROXY: "on"
- ports:
- - "51821-51830:51821-51830/udp"
- - "3478:3478/udp"
- netmaker-ui:
- container_name: netmaker-ui
- image: gravitl/netmaker-ui:v0.17.1
- depends_on:
- - netmaker
- links:
- - "netmaker:api"
- restart: always
- environment:
- BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
- 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"
- 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
- depends_on:
- - netmaker
- restart: unless-stopped
- command: ["/mosquitto/config/wait.sh"]
- environment:
- NETMAKER_SERVER_HOST: "https://api.NETMAKER_BASE_DOMAIN"
- volumes:
- - /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
- - /root/wait.sh:/mosquitto/config/wait.sh
- - mosquitto_data:/mosquitto/data
- - mosquitto_logs:/mosquitto/log
- volumes:
- caddy_data: {}
- caddy_conf: {}
- sqldata: {}
- dnsconfig: {}
- mosquitto_data: {}
- mosquitto_logs: {}
|