docker-compose.nocaddy.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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: "on"
  38. PORT_FORWARD_SERVICES: "dns"
  39. ports:
  40. - "51821-51830:51821-51830/udp"
  41. - "8081:8081"
  42. netmaker-ui:
  43. container_name: netmaker-ui
  44. depends_on:
  45. - netmaker
  46. image: gravitl/netmaker-ui:v0.13.1
  47. links:
  48. - "netmaker:api"
  49. ports:
  50. - "8082:80"
  51. environment:
  52. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  53. restart: always
  54. coredns:
  55. depends_on:
  56. - netmaker
  57. image: coredns/coredns
  58. command: -conf /root/dnsconfig/Corefile
  59. container_name: coredns
  60. restart: always
  61. ports:
  62. - "COREDNS_IP:53:53/udp"
  63. - "COREDNS_IP:53:53/tcp"
  64. volumes:
  65. - dnsconfig:/root/dnsconfig
  66. mq:
  67. image: eclipse-mosquitto:2.0.11-openssl
  68. container_name: mq
  69. restart: unless-stopped
  70. ports:
  71. - "127.0.0.1:1883:1883"
  72. - "8883:8883"
  73. volumes:
  74. - /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
  75. - mosquitto_data:/mosquitto/data
  76. - mosquitto_logs:/mosquitto/log
  77. volumes:
  78. sqldata: {}
  79. dnsconfig: {}
  80. mosquitto_data: {}
  81. mosquitto_logs: {}