docker-compose.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: "3.4"
  2. services:
  3. mongodb:
  4. image: mongo:4.2
  5. ports:
  6. - "27017:27017"
  7. container_name: mongodb
  8. volumes:
  9. - mongovol:/data/db
  10. restart: always
  11. environment:
  12. MONGO_INITDB_ROOT_USERNAME: mongoadmin
  13. MONGO_INITDB_ROOT_PASSWORD: mongopass
  14. netmaker:
  15. privileged: true
  16. container_name: netmaker
  17. depends_on:
  18. - mongodb
  19. image: gravitl/netmaker:v0.5
  20. volumes:
  21. - ./:/local
  22. - /etc/netclient:/etc/netclient
  23. - dnsconfig:/root/config/dnsconfig
  24. - /usr/bin/wg:/usr/bin/wg
  25. - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
  26. - /run/systemd/system:/run/systemd/system
  27. - /etc/systemd/system:/etc/systemd/system
  28. - /sys/fs/cgroup:/sys/fs/cgroup
  29. cap_add:
  30. - NET_ADMIN
  31. - SYS_MODULE
  32. restart: always
  33. network_mode: host
  34. environment:
  35. SERVER_HOST: "HOST_IP"
  36. netmaker-ui:
  37. container_name: netmaker-ui
  38. depends_on:
  39. - netmaker
  40. image: gravitl/netmaker-ui:v0.5
  41. links:
  42. - "netmaker:api"
  43. ports:
  44. - "80:80"
  45. environment:
  46. BACKEND_URL: "http://HOST_IP:8081"
  47. coredns:
  48. depends_on:
  49. - netmaker
  50. image: coredns/coredns
  51. command: -conf /root/dnsconfig/Corefile
  52. container_name: coredns
  53. restart: always
  54. ports:
  55. - "53:53/udp"
  56. volumes:
  57. - dnsconfig:/root/dnsconfig
  58. volumes:
  59. mongovol: {}
  60. dnsconfig: {}