docker-compose.nocaddy.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. version: "3.4"
  2. services:
  3. netmaker:
  4. container_name: netmaker
  5. image: gravitl/netmaker:v0.9.4
  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. restart: always
  13. privileged: true
  14. environment:
  15. SERVER_HOST: "SERVER_PUBLIC_IP"
  16. SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
  17. SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
  18. COREDNS_ADDR: "SERVER_PUBLIC_IP"
  19. GRPC_SSL: "on"
  20. DNS_MODE: "on"
  21. SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
  22. SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
  23. API_PORT: "8081"
  24. GRPC_PORT: "50051"
  25. CLIENT_MODE: "on"
  26. MASTER_KEY: "REPLACE_MASTER_KEY"
  27. SERVER_GRPC_WIREGUARD: "off"
  28. CORS_ALLOWED_ORIGIN: "*"
  29. DISPLAY_KEYS: "on"
  30. DATABASE: "sqlite"
  31. NODE_ID: "netmaker-server-1"
  32. ports:
  33. - "51821-51830:51821-51830/udp"
  34. - "8081:8081"
  35. - "50051:50051"
  36. netmaker-ui:
  37. container_name: netmaker-ui
  38. depends_on:
  39. - netmaker
  40. image: gravitl/netmaker-ui:v0.9.3
  41. links:
  42. - "netmaker:api"
  43. ports:
  44. - "8082:80"
  45. environment:
  46. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  47. restart: always
  48. coredns:
  49. depends_on:
  50. - netmaker
  51. image: coredns/coredns
  52. command: -conf /root/dnsconfig/Corefile
  53. container_name: coredns
  54. restart: always
  55. ports:
  56. - "COREDNS_IP:53:53/udp"
  57. - "COREDNS_IP:53:53/tcp"
  58. volumes:
  59. - dnsconfig:/root/dnsconfig
  60. volumes:
  61. sqldata: {}
  62. dnsconfig: {}