Advertisement
Guest User

Untitled

a guest
May 11th, 2022
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. version: "3.4"
  2.  
  3. services:
  4. netmaker:
  5. container_name: netmaker
  6. image: gravitl/netmaker:v0.13.1
  7. volumes:
  8. - /etc/netmaker/dnsconfig:/root/config/dnsconfig
  9. - /usr/bin/wg:/usr/bin/wg
  10. - /etc/netmaker/data:/root/data
  11. - /etc/netmaker/certs:/etc/netmaker/
  12. cap_add:
  13. - NET_ADMIN
  14. - NET_RAW
  15. - SYS_MODULE
  16. restart: always
  17. network_mode: host
  18. environment:
  19. SERVER_NAME: "api.$my_domain_name"
  20. SERVER_HOST: "$my_public_ip"
  21. SERVER_API_CONN_STRING: "api.$my_domain_name:443"
  22. COREDNS_ADDR: "$my_public_ip"
  23. DNS_MODE: "on"
  24. SERVER_HTTP_HOST: "api.$my_domain_name"
  25. API_PORT: "8081"
  26. CLIENT_MODE: "on"
  27. MASTER_KEY: "$master_key"
  28. CORS_ALLOWED_ORIGIN: "*"
  29. DISPLAY_KEYS: "on"
  30. DATABASE: "postgres"
  31. SQL_HOST: 172.17.0.1
  32. SQL_USER: netmaker
  33. SQL_PASS: $psql_password
  34. TELEMETRY: "off"
  35. NODE_ID: "coin"
  36. MQ_HOST: "$my_public_ip:8883"
  37. VERBOSITY: "3"
  38. HOST_NETWORK: "on"
  39. MANAGE_IPTABLES: "on"
  40. netmaker-ui:
  41. container_name: netmaker-ui
  42. depends_on:
  43. - netmaker
  44. image: gravitl/netmaker-ui:v0.13.1
  45. links:
  46. - "netmaker:api"
  47. ports:
  48. - "127.0.0.1:8082:80"
  49. environment:
  50. BACKEND_URL: "https://api.$my_domain_name"
  51. VERBOSITY: "3"
  52. restart: always
  53. coredns:
  54. depends_on:
  55. - netmaker
  56. image: coredns/coredns
  57. command: -conf /root/dnsconfig/Corefile
  58. container_name: coredns
  59. restart: always
  60. volumes:
  61. - /etc/netmaker/dnsconfig:/root/dnsconfig:rw
  62. ports:
  63. - "$my_public_ip:53:53"
  64. - "$my_public_ip:53:53/udp"
  65. mq:
  66. image: eclipse-mosquitto:2.0.11-openssl
  67. depends_on:
  68. - netmaker
  69. container_name: mq
  70. restart: unless-stopped
  71. ports:
  72. - "127.0.0.1:1883:1883"
  73. - "172.17.0.1:8883:8883"
  74. volumes:
  75. - /etc/netmaker/mosquitto/:/mosquitto/config/:rw
  76. - /etc/netmaker/certs/:/mosquitto/certs/:rw
  77. - /etc/netmaker/mosquitto_data/:/mosquitto/data:rw
  78. - /etc/netmaker/mosquitto_logs/:/mosquitto/log:rw
  79.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement