docker-compose.nocaddy.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. version: "3.4"
  2. services:
  3. netmaker:
  4. container_name: netmaker
  5. image: gravitl/netmaker:v0.11.1
  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. SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
  21. COREDNS_ADDR: "SERVER_PUBLIC_IP"
  22. GRPC_SSL: "on"
  23. DNS_MODE: "on"
  24. SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
  25. SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
  26. API_PORT: "8081"
  27. GRPC_PORT: "50051"
  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. MANAGE_IPTABLES: "on"
  37. PORT_FORWARD_SERVICES: "mq,dns,ssh"
  38. VERBOSITY: "1"
  39. ports:
  40. - "51821-51830:51821-51830/udp"
  41. - "8081:8081"
  42. - "50051:50051"
  43. netmaker-ui:
  44. container_name: netmaker-ui
  45. depends_on:
  46. - netmaker
  47. image: gravitl/netmaker-ui:v0.11.1
  48. links:
  49. - "netmaker:api"
  50. ports:
  51. - "8082:80"
  52. environment:
  53. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  54. restart: always
  55. coredns:
  56. depends_on:
  57. - netmaker
  58. image: coredns/coredns
  59. command: -conf /root/dnsconfig/Corefile
  60. container_name: coredns
  61. restart: always
  62. ports:
  63. - "COREDNS_IP:53:53/udp"
  64. - "COREDNS_IP:53:53/tcp"
  65. volumes:
  66. - dnsconfig:/root/dnsconfig
  67. mq:
  68. image: eclipse-mosquitto:2.0.14
  69. container_name: mq
  70. restart: unless-stopped
  71. ports:
  72. - "1883:1883"
  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: {}