docker-compose.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. version: "3.4"
  2. services:
  3. netmaker:
  4. container_name: netmaker
  5. image: gravitl/netmaker:v0.17.1
  6. restart: always
  7. volumes:
  8. - dnsconfig:/root/config/dnsconfig
  9. - sqldata:/root/data
  10. - mosquitto_data:/etc/netmaker
  11. environment:
  12. BROKER_NAME: "broker.NETMAKER_BASE_DOMAIN"
  13. SERVER_NAME: "NETMAKER_BASE_DOMAIN"
  14. STUN_DOMAIN: "stun.NETMAKER_BASE_DOMAIN"
  15. SERVER_HOST: "SERVER_PUBLIC_IP"
  16. SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
  17. COREDNS_ADDR: "SERVER_PUBLIC_IP"
  18. DNS_MODE: "on"
  19. SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
  20. API_PORT: "8081"
  21. MASTER_KEY: "REPLACE_MASTER_KEY"
  22. CORS_ALLOWED_ORIGIN: "*"
  23. DISPLAY_KEYS: "on"
  24. DATABASE: "sqlite"
  25. NODE_ID: "netmaker-server-1"
  26. MQ_HOST: "mq"
  27. MQ_PORT: "443"
  28. MQ_SERVER_PORT: "1883"
  29. VERBOSITY: "1"
  30. MQ_ADMIN_PASSWORD: "REPLACE_MQ_ADMIN_PASSWORD"
  31. STUN_PORT: "3478"
  32. PROXY: "on"
  33. ports:
  34. - "51821-51830:51821-51830/udp"
  35. - "3478:3478/udp"
  36. netmaker-ui:
  37. container_name: netmaker-ui
  38. image: gravitl/netmaker-ui:v0.17.1
  39. depends_on:
  40. - netmaker
  41. links:
  42. - "netmaker:api"
  43. restart: always
  44. environment:
  45. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  46. caddy:
  47. image: caddy:2.6.2
  48. container_name: caddy
  49. restart: unless-stopped
  50. volumes:
  51. - /root/Caddyfile:/etc/caddy/Caddyfile
  52. - caddy_data:/data
  53. - caddy_conf:/config
  54. ports:
  55. - "80:80"
  56. - "443:443"
  57. coredns:
  58. container_name: coredns
  59. image: coredns/coredns
  60. command: -conf /root/dnsconfig/Corefile
  61. depends_on:
  62. - netmaker
  63. restart: always
  64. volumes:
  65. - dnsconfig:/root/dnsconfig
  66. mq:
  67. container_name: mq
  68. image: eclipse-mosquitto:2.0.15-openssl
  69. depends_on:
  70. - netmaker
  71. restart: unless-stopped
  72. command: ["/mosquitto/config/wait.sh"]
  73. environment:
  74. NETMAKER_SERVER_HOST: "https://api.NETMAKER_BASE_DOMAIN"
  75. volumes:
  76. - /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
  77. - /root/wait.sh:/mosquitto/config/wait.sh
  78. - mosquitto_data:/mosquitto/data
  79. - mosquitto_logs:/mosquitto/log
  80. volumes:
  81. caddy_data: {}
  82. caddy_conf: {}
  83. sqldata: {}
  84. dnsconfig: {}
  85. mosquitto_data: {}
  86. mosquitto_logs: {}