docker-compose.nocaddy.yml 1.8 KB

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