docker-compose.nocaddy.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. version: "3.4"
  2. services:
  3. netmaker:
  4. container_name: netmaker
  5. image: gravitl/netmaker:v0.13.1
  6. volumes:
  7. - dnsconfig:/root/config/dnsconfig
  8. - sqldata:/root/data
  9. - /root/certs:/etc/netmaker/
  10. cap_add:
  11. - NET_ADMIN
  12. - NET_RAW
  13. - SYS_MODULE
  14. sysctls:
  15. - net.ipv4.ip_forward=1
  16. - net.ipv4.conf.all.src_valid_mark=1
  17. - net.ipv6.conf.all.disable_ipv6=0
  18. - net.ipv6.conf.all.forwarding=1
  19. restart: always
  20. environment:
  21. SERVER_NAME: "broker.NETMAKER_BASE_DOMAIN"
  22. SERVER_HOST: "SERVER_PUBLIC_IP"
  23. SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
  24. COREDNS_ADDR: "SERVER_PUBLIC_IP"
  25. DNS_MODE: "on"
  26. SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
  27. API_PORT: "8081"
  28. CLIENT_MODE: "on"
  29. MASTER_KEY: "REPLACE_MASTER_KEY"
  30. CORS_ALLOWED_ORIGIN: "*"
  31. DISPLAY_KEYS: "on"
  32. DATABASE: "sqlite"
  33. NODE_ID: "netmaker-server-1"
  34. MQ_HOST: "mq"
  35. HOST_NETWORK: "off"
  36. VERBOSITY: "1"
  37. MANAGE_IPTABLES: "off"
  38. ports:
  39. - "51821-51830:51821-51830/udp"
  40. - "8081:8081"
  41. netmaker-ui:
  42. container_name: netmaker-ui
  43. depends_on:
  44. - netmaker
  45. image: gravitl/netmaker-ui:v0.13.1
  46. links:
  47. - "netmaker:api"
  48. ports:
  49. - "8082:80"
  50. environment:
  51. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  52. restart: always
  53. coredns:
  54. depends_on:
  55. - netmaker
  56. image: coredns/coredns
  57. command: -conf /root/dnsconfig/Corefile
  58. container_name: coredns
  59. restart: always
  60. ports:
  61. - "COREDNS_IP:53:53/udp"
  62. - "COREDNS_IP:53:53/tcp"
  63. volumes:
  64. - dnsconfig:/root/dnsconfig
  65. mq:
  66. image: eclipse-mosquitto:2.0.11-openssl
  67. container_name: mq
  68. restart: unless-stopped
  69. ports:
  70. - "127.0.0.1:1883:1883"
  71. - "8883:8883"
  72. volumes:
  73. - /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
  74. - mosquitto_data:/mosquitto/data
  75. - mosquitto_logs:/mosquitto/log
  76. volumes:
  77. sqldata: {}
  78. dnsconfig: {}
  79. mosquitto_data: {}
  80. mosquitto_logs: {}