docker-compose.yml 1.5 KB

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