docker-compose.nocaddy.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. version: "3.4"
  2. services:
  3. netmaker:
  4. container_name: netmaker
  5. image: gravitl/netmaker:v0.10.0
  6. volumes:
  7. - dnsconfig:/root/config/dnsconfig
  8. - /usr/bin/wg:/usr/bin/wg
  9. - sqldata:/root/data
  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. restart: always
  18. environment:
  19. SERVER_HOST: "SERVER_PUBLIC_IP"
  20. SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
  21. SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
  22. COREDNS_ADDR: "SERVER_PUBLIC_IP"
  23. GRPC_SSL: "on"
  24. DNS_MODE: "on"
  25. SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
  26. SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
  27. API_PORT: "8081"
  28. GRPC_PORT: "50051"
  29. CLIENT_MODE: "on"
  30. MASTER_KEY: "REPLACE_MASTER_KEY"
  31. CORS_ALLOWED_ORIGIN: "*"
  32. DISPLAY_KEYS: "on"
  33. DATABASE: "sqlite"
  34. NODE_ID: "netmaker-server-1"
  35. MQ_HOST: "mq"
  36. HOST_NETWORK: "off"
  37. MANAGE_IPTABLES: "on"
  38. PORT_FORWARD_SERVICES: "mq,dns,ssh"
  39. VERBOSITY: "1"
  40. ports:
  41. - "51821-51830:51821-51830/udp"
  42. - "8081:8081"
  43. - "50051:50051"
  44. netmaker-ui:
  45. container_name: netmaker-ui
  46. depends_on:
  47. - netmaker
  48. image: gravitl/netmaker-ui:v0.10.0
  49. links:
  50. - "netmaker:api"
  51. ports:
  52. - "8082:80"
  53. environment:
  54. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  55. restart: always
  56. coredns:
  57. depends_on:
  58. - netmaker
  59. image: coredns/coredns
  60. command: -conf /root/dnsconfig/Corefile
  61. container_name: coredns
  62. restart: always
  63. ports:
  64. - "COREDNS_IP:53:53/udp"
  65. - "COREDNS_IP:53:53/tcp"
  66. volumes:
  67. - dnsconfig:/root/dnsconfig
  68. mq:
  69. image: eclipse-mosquitto:2.0.14
  70. container_name: mq
  71. restart: unless-stopped
  72. ports:
  73. - "1883:1883"
  74. volumes:
  75. - /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
  76. - mosquitto_data:/mosquitto/data
  77. - mosquitto_logs:/mosquitto/log
  78. volumes:
  79. sqldata: {}
  80. dnsconfig: {}
  81. mosquitto_data: {}
  82. mosquitto_logs: {}